We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8533377 commit 9115b4bCopy full SHA for 9115b4b
fastapi-python-web-apis/main.py
@@ -69,8 +69,8 @@ async def home():
69
return {"message": "Welcome to the Randomizer API"}
70
71
72
-@app.get("/random/{max_value}")
73
-async def get_random_number(max_value: int, tags=["Random Playground"]):
+@app.get("/random/{max_value}", tags=["Random Playground"])
+async def get_random_number(max_value: int):
74
return {"max": max_value, "random_number": random.randint(1, max_value)}
75
76
0 commit comments