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
$ curl -X 'GET' 'https://fasjson.fedoraproject.org/v1/me/' -H 'accept: application/json'
{"message": "The server could not verify that you are authorized to access the URL requested. You either supplied the wrong credentials (e.g. a bad password), or your browser doesn't understand how to supply the credentials required."}
It took me some time to figure out why. The other documentation makes it clear that those curl commands need to include --negotiate -u : :
It's unfortunately impossible to do at the moment. This documentation is auto-generated by Swagger, and the configuration option required to change the example curl command is not available through the flask-restx library we use. I've opened a ticket on flask-restx for this feature request.
Looking at https://fasjson.fedoraproject.org/docs/v1/ the examples worked for me in a browser, but didn't work on the command line:
It took me some time to figure out why. The other documentation makes it clear that those
curl
commands need to include--negotiate -u :
:Please fix the documentation to include those args, thank you.
The text was updated successfully, but these errors were encountered: