📝 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:
Yankee
2020-06-13 22:59:23 +05:45
committed by GitHub
parent bf58788f29
commit 748bedd37c
2 changed files with 17 additions and 6 deletions

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"}