The method segment (e.g., ":id", "new", etc.). If not provided, defaults to an empty method. If it's empty, an entity must be provided in the @EndpointGenerator
.
The HTTP verb (default "GET").
The route priority (default Infinity
). Lower values indicate higher priority. Use this when you add multiple routes that could match the same path but you want one to have priority. E.g., /users/search
and /users/:id
, here, /users/search
should have a higher priority because /users/:id
is more generic and would match it otherwise.
Declares the route for a handler method.