Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork8.7k
✨ Add additonal OpenAPI metadata parameters toFastAPI class, shown on the automatic API docs UI#1812
Conversation
codecovbot commentedJul 30, 2020 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## master #1812 +/- ##========================================= Coverage 100.00% 100.00% ========================================= Files 401 401 Lines 10080 10090 +10 =========================================+ Hits 10080 10090 +10
Continue to review full report at Codecov.
|
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>
📝 Docs preview for commitd977bce at:https://5f22d4d7fd565b6ce626f92a--fastapi.netlify.app |
dkreeft commentedAug 5, 2020
@Kludex do you mind approving this PR? Thanks! |
📝 Docs preview for commit01144e1 at:https://5f2ae80bbc92b5c8d4e9f3cc--fastapi.netlify.app |
dkreeft commentedSep 10, 2020
@tiangolo any ETA for approving this request? In my team we are waiting for this change. |
tiangolo commentedJul 29, 2021
Thanks@dkreeft! 🚀 I updated it a bit, updated the type annotations, order of arguments, and the docs. Thanks for your contribution! ☕ 🍰 This will be available later today in FastAPI version |
📝 Docs preview for commit69e3b4b at:https://6102c48f4a903a39c0f03146--fastapi.netlify.app |
FastAPI class, shown on the automatic API docs UI… on the automatic API docs UI (fastapi#1812)Co-authored-by: Marcelo Trylesinski <marcelotryle@gmail.com>Co-authored-by: dkreeft <dkreeft@xccelerated.io>Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
As described in#843 that I needed and stumbled upon. This PR adds extra metadata parameters to the code and docs. So now you can specify contact and license information as well as terms of service.
I tried to keep the naming of the parameters in line with thespecification, but unfortunately
licenseis a Python built-in, so I went withlicense_infoinstead.