annotation Athena::Routing::Patch
Overview
Defines a PATCH endpoint.
Fields
- path :
String- The path for the endpoint, may also be provided as the first positional argument. - constraints :
Hash(String, Regex)- A mapping between a route's path parameters and its constraints.
Example
@[ART::Patch(path: "/users/:id")]
def partial_update_user(id : Int32) : Nil
end