📝 Updated docs for path-params (#1521)

* Added response example; URL for quick access; typo fixes

* Added line breaks for readability

* Fix typo on redoc url

* 📝 Update format, links, rewordings

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
YankeeandSebastián Ramírez authored and GitHub committed 2020-06-13 19:14:23 +02:00
1 parent bf58788f29
commit 748bedd37c
2 files changed
+17 -6

No files matched your search

+2
View File
@@ -16,6 +16,8 @@ app = FastAPI()
async def get_model(model_name: ModelName):
if model_name == ModelName.alexnet:
return {"model_name": model_name, "message": "Deep Learning FTW!"}
if model_name.value == "lenet":
return {"model_name": model_name, "message": "LeCNN all the images"}
return {"model_name": model_name, "message": "Have some residuals"}