This is another video that discusses a feature that is useful for creation of Swagger documentation to make your API even more descriptive.
A generic FastAPI response without Response Status Codes will only display 200 and 422 as response types. If, for example, you have a route that creates a new item (a POST) route or one that returns no data then you would want to change the status code to something like a 201 or 204 so that it is more easily understood by consumers of your API.
We touch on that concept in this video.
GitHub: https://github.com/jvp-design/fastapi...
Watch video Fast API Tutorial, Part 15: Response Status Codes online without registration, duration hours minute second in high quality. This video was added by user JVP Design 08 June 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 5,44 once and liked it 8 people.