Replies: 4 comments
-
The order is important.
is the correct way to do that. if you have a route with a fixed path, you need to define it before the route with a dynamic path. check out the documentation: |
Beta Was this translation helpful? Give feedback.
-
gosh, I skip that one most important doc, thank you for the reminder and the respons @SebastianLuebke ! |
Beta Was this translation helpful? Give feedback.
-
check out the documentation: |
Beta Was this translation helpful? Give feedback.
-
Thanks for the help here @SebastianLuebke ! 👏 🙇 Thanks for reporting back and closing the issue @yyoel 👍 |
Beta Was this translation helpful? Give feedback.
-
First check
Example
Here's a self-contained, minimal, reproducible, example with my use case:
Description
Hello, first of all, I'm sorry if the title were too confusing, I really don't know if there were bugs or maybe my implementation of APIRoute is just wrong in all way,
I attach some of the code when I use APIRoute in the Example above,
when I order my code like the above example and try to request the API(the third route), using curl terminal or from swagger it returns this response
if using curl,
Okay, I don't know where and why the value that I gave becomes 'int' type, I literally giving it an 'str' type of value,
But when I try to change the order like this,
Suddenly the returns response the right one(200 OK)
So back to the question in the title, that could it be APIRoute really read the order of the route, or is it just my implementations that were wrong?
Regards,
Environment
Beta Was this translation helpful? Give feedback.
All reactions