Results of 1 - 2 of about 2 for components (0.001 sec.)
- Additional Responses in OpenAPI 11228
- Additional Responses in OpenAPI Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . Warning This is a rather advanced topic. If you are starting with FastAPI , you mig
...onses" : { "404" : { "description" : "Additional Response" , "content" : { "application/json" : { "schema" : { "$ref" : "#/components/schemas/Message" } } } }, "200" : { "description" : "Successful Response" , "content" : { "application/json" : { "schema"...: { "$ref" : "#/components/schemas/Item" } } } }, "422" : { "description" : "Validation Error" , "content" : { "application/json" : { "schema" : { "$...ref" : "#/components/schemas/HTTPValidationError" } } } } } } The schemas are referenced to another place inside the OpenAPI schema: { "compone... - https://man.mtool.work/fastapi/0.115/advanced/additional-responses/
- Custom Request and APIRoute class 7485
- Custom Request and APIRoute class Warning The current page still doesn't have a translation for this language. But you can help translating it: Contributing . In some cases, you may want to override the logic used by the Request and APIRout
...RequestValidationError ( Handling Errors ). But this example is still valid and it shows how to interact with the internal components. We can also use this same approach to access the request body in an exception handler. All we need to do is handle the re... - https://man.mtool.work/fastapi/0.115/how-to/custom-request-and-route/
PREV
1
NEXT