-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
"Hello" API: the server response is different from the one expected #118
Comments
What do you mean? https://api.folksonomy.openfoodfacts.org/docs#/default/hello__get provides only one answer. |
@CharlesNepote it's more than the documentation is not accurate. |
Ok. So the title of this issue is wrong. We don't get 2 "200" answers: you can verify with The second "200" shown on your screenshot is what the API should reply. So there is indeed an issue, but the right title should be "The server response is different from the one expected". I'm changing the title. |
The issue occurs with:
I guess we need to create more classes in https://github.com/openfoodfacts/folksonomy_api/blob/main/folksonomy/models.py and add them to the routes as in |
Working on this. Essentially boils down to creating BaseModels and assigning it as response model. |
What
The Swagger documentation specifies 2 200 responses for the Hello API. Which one is the correct one?
Steps to reproduce the behavior:
Look at the Swagger doc
Expected behaviour
Just the json response seems enough.
Part of
The text was updated successfully, but these errors were encountered: