0

When I use POST from the Swagger UI, the response code is 0. But when I run the generated CURL command in the command line, it works. In my Swagger UI, GET method works. The problem happens only for POST.

@ApiParam(value = "test", required = true, allowMultiple = false) final myclass objectA) 
Fariba
  • 693
  • 1
  • 12
  • 27
  • Can you please add more information to your question: Things like What have you tried so far? How does the API look like? What's the CURL command you used? Even maybe an screenshot from the Swagger UI page? Look at [this question](http://stackoverflow.com/questions/35701976/swagger-ui-for-rails-api-using-activemodels-serializer) as an example. – Navid Shakibapour Mar 03 '16 at 16:20

1 Answers1

0

My question was as same as question. Need to add Access-Control-Allow-Headers

Community
  • 1
  • 1
Fariba
  • 693
  • 1
  • 12
  • 27