Unable to generate api token via API browser #2668
Closed
Comments
@hc4 curl is working: https://gist.github.com/joschi/21bc88207881581099570dd85588f7df |
Curl works, if you will not add tag Content-Type. This request works fine: But this not:
|
I updated the title and re-opened the issue. |
bernd
added a commit
that referenced
this issue
Aug 16, 2016
…owser This forces the swagger API browser to use a Content-Type of application/json. Fixes #2668
joschi
added a commit
that referenced
this issue
Aug 16, 2016
* Add defaultValue param from ApiParam and DefaultValue annotations * Add defaultValue to @ApiParam in RolesResource * Add placeholder param to make it possible to create token from API browser This forces the swagger API browser to use Content-Type: application/json Fixes #2668
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Trying to create token using api browser.
But error returned:
Looks like the problem is in Content-Type header of request:
Content-Type:text/plain;charset=UTF-8
But according to sources Users api consumes json:
and generateNewToken api doesn't have
consumes
attribute at all.Your Environment
The text was updated successfully, but these errors were encountered: