diff --git a/adapter/echoopenapi/README.MD b/adapter/echoopenapi/README.MD index a770391..6a6fecb 100644 --- a/adapter/echoopenapi/README.MD +++ b/adapter/echoopenapi/README.MD @@ -54,7 +54,7 @@ func main() { auth := v1.Group("", AuthMiddleware).With( option.GroupSecurity("bearerAuth"), ) - auth.GET("/users/{id}", GetUserHandler).With( + auth.GET("/users/:id", GetUserHandler).With( option.Summary("Get user by ID"), option.Request(new(GetUserRequest)), option.Response(200, new(User)), diff --git a/adapter/echoopenapi/examples/basic/main.go b/adapter/echoopenapi/examples/basic/main.go index c36f3a7..088e81c 100644 --- a/adapter/echoopenapi/examples/basic/main.go +++ b/adapter/echoopenapi/examples/basic/main.go @@ -29,7 +29,7 @@ func main() { auth := v1.Group("", AuthMiddleware).With( option.GroupSecurity("bearerAuth"), ) - auth.GET("/users/{id}", GetUserHandler).With( + auth.GET("/users/:id", GetUserHandler).With( option.Summary("Get user by ID"), option.Request(new(GetUserRequest)), option.Response(200, new(User)),