[QUESTION]
See original GitHub issueDescription
I was going through the Path Parameter and Query Parameters.
So far I got, We have to create a parameter for both Path Parameters
& Query Parameters
in our function.
My question is what if someone wants to create an API like this.
https://example.com/message/{user_id}?user_id=alif&message=hello
To create such API I have to pass two parameters with same name but which doesn’t allows in Python.
@app.get('/message/{user_id}')
async def create_message(user_id: str, user_id: str, message: str):
......
......
return {}
Is there any way to do this or I am missing something?
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Taylor Swift - Question...? (Lyric Video) - YouTube
Listen to “ Question …?” by Taylor Swift from the album 'Midnights'.Buy/Download/Stream 'Midnights': ...
Read more >System Of A Down - Question! (Official HD Video) - YouTube
Official HD music video for ” Question !" by System of a DownListen to System of a Down: https://SystemOfADown.lnk.to/listenYDSubscribe to the ...
Read more >Question Definition & Meaning - Merriam-Webster
noun ; b · a subject or aspect in dispute or open for discussion : issue ; d · the specific point at...
Read more >Question Definition & Meaning | Dictionary.com
a problem for discussion or under discussion; a matter for investigation. a matter of some uncertainty or difficulty; problem (usually followed by of):...
Read more >Meaning of question in English - Cambridge Dictionary
a sentence or phrase used to find out information: The police asked me questions all day. Why won't you answer my question?
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@JarroVGIT Example usage of path parameters with alias
Have you tried it? If so, what was the outcome? If not, please do:)