You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem when I try to get back a file after a POST method using Swagger-UI and the Spring-MVC server generated using Swagger Codegen.
My function consists of posting a picture to the server, then I do some stuff with this picture and finally I send it back.. In order to send it back, I'm doing a redirect.. This works perfectly with the GET methods but it doesn't work with the POST functions..
The screenshot I added shows you what's going on.. So, the POST method is working and redirects to another function which is a GET.. (I also tried with a 307 redirect and a POST method to display the picture, doesn't work either..)
The problem seems to come from Swagger-UI because at the end, it does a third call which is a GET on the original POST method..
Do you know how I can get rid of this problem??
Thank you in advance.
P.S.: I saw that the issue #1652 is similar.. I tried the suggested fix but it did not worked..
P.S.: I also tried to return a type file.. But I always get a 406 error.. This problem surely concerns Swagger Codegen.. So if you think that it's better to use this solution, I'll ask the guys working on Swagger Codegen.
The text was updated successfully, but these errors were encountered:
Hi,
I have a problem when I try to get back a file after a POST method using Swagger-UI and the Spring-MVC server generated using Swagger Codegen.
My function consists of posting a picture to the server, then I do some stuff with this picture and finally I send it back.. In order to send it back, I'm doing a redirect.. This works perfectly with the GET methods but it doesn't work with the POST functions..
The screenshot I added shows you what's going on.. So, the POST method is working and redirects to another function which is a GET.. (I also tried with a 307 redirect and a POST method to display the picture, doesn't work either..)
The problem seems to come from Swagger-UI because at the end, it does a third call which is a GET on the original POST method..
Do you know how I can get rid of this problem??
Thank you in advance.
P.S.: I saw that the issue #1652 is similar.. I tried the suggested fix but it did not worked..
P.S.: I also tried to return a type file.. But I always get a 406 error.. This problem surely concerns Swagger Codegen.. So if you think that it's better to use this solution, I'll ask the guys working on Swagger Codegen.
The text was updated successfully, but these errors were encountered: