We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
MethodDescription
https://dqrura49d0.execute-api.us-east-1.amazonaws.com/docs auto-docs does not describe the format of /methods API endpoint.
/methods
To remedy that, create a MethodDescription Pydantic model with two fields: name: str and label: Method.
name: str
label: Method
Use List[MethodDescription] as response_model argument for @app.get() and return list of MethodDescription instances instead of list of dicts.
List[MethodDescription]
response_model
@app.get()
Relevant docs: https://fastapi.tiangolo.com/tutorial/response-model/
The text was updated successfully, but these errors were encountered:
GET /methods/
resolves #17 accidentally sent few issues in one pull request
Sorry, something went wrong.
No branches or pull requests
https://dqrura49d0.execute-api.us-east-1.amazonaws.com/docs auto-docs does not describe the format of
/methods
API endpoint.To remedy that, create a
MethodDescription
Pydantic model with two fields:name: str
andlabel: Method
.Use
List[MethodDescription]
asresponse_model
argument for@app.get()
and return list ofMethodDescription
instances instead of list of dicts.Relevant docs: https://fastapi.tiangolo.com/tutorial/response-model/
The text was updated successfully, but these errors were encountered: