-
-
Notifications
You must be signed in to change notification settings - Fork 384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using form parameters in generated API documentation #62
Comments
Hi @ognjenk Indeed, seems there is a bug in schema for forms - will check it out Thanks |
Thanks a lot for the quick response. Also thanks for creating this project, I haven't spent too much time on it yet, but so far I am loving it! |
Hi, just to let you know I have tried this in 0.10.0 release and it works great. |
great! |
HI , @vitalik
could you help plz |
@mohannadirshedat which method do you use ? My guess is that you use PATCH - in this case you need to patch django with this middlewre - #417 (comment) |
Hey @vitalik Can we put this middleware in the documentation? |
Hi,
I'm pretty new to API programming so please bear with me.
I am trying to define login endpoint which will take username and password as form parameters, like this:
Generated API docs will display endpoint and form parameters correctly, however when I try using the endpoint through the docs it will generate curl like this:
and the error I get is code 422 Undocumented | Error: Unprocessable Entity
with response:
Looks like the parameters and their values are not passed to the generated API call.
If I do a manual curl call like this:
everything works as expected.
Thanks in advance!
The text was updated successfully, but these errors were encountered: