Closed hmajid2301 closed 4 years ago
Path parameters are handled by the underlying router, Gin. It doesn't seems that you can use the semicolon without encountering issues.
See this issue: https://github.com/gin-gonic/gin/issues/1432
Anyway, you should not use such URLs. Try something explicit like /game/:name/enable, and you'll be fine.
Yeh I thought I remember reading the colon approach was preferred for actions in some rest guide. But you are correct /enable
hardly makes a difference thanks.
Hi, is it possible to use endpoints that have a
:
in the path?Such as:
/game/{name}:enable
If I try:
I get the following error
Thanks