You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by morilog September 16, 2021
Can I able to escape : char in route path to achieve compatiblity with google API design custom methods? something like fiber framework
For example in https://service.name/v1/some/resource/name:customVerb, the :customVerb is not route parameter and only is a simple string.
// curl -v -X POST "http://localhost:8088/v1/some/resource/name:undelete"funcmain() {
e:=echo.New()
// route path as Cloud API "custom method"// https://cloud.google.com/apis/design/custom_methodse.POST("/v1/some/resource/name\\:undelete", func(c echo.Context) error {
resp:=fmt.Sprintf("mehtod: %v\n", c.Request().Method)
returnc.String(200, resp)
})
log.Fatal(e.Start(":8088"))
}
The text was updated successfully, but these errors were encountered:
aldas
added a commit
to aldas/echo
that referenced
this issue
Sep 16, 2021
Discussed in #1986
Originally posted by morilog September 16, 2021
Can I able to escape
:
char in route path to achieve compatiblity with google API design custom methods? something like fiber frameworkFor example in
https://service.name/v1/some/resource/name:customVerb
, the:customVerb
is not route parameter and only is a simple string.The text was updated successfully, but these errors were encountered: