HasResponseModel configures the request model of the route. Example: api.Post("/user").HasRequestModel(http.StatusOK, rest.ModelOf[User]())
(request Model)
| 269 | // |
| 270 | // api.Post("/user").HasRequestModel(http.StatusOK, rest.ModelOf[User]()) |
| 271 | func (rm *Route) HasRequestModel(request Model) *Route { |
| 272 | rm.Models.Request = request |
| 273 | return rm |
| 274 | } |
| 275 | |
| 276 | // HasPathParameter configures a path parameter for the route. |
| 277 | func (rm *Route) HasPathParameter(name string, p PathParam) *Route { |
no outgoing calls