Variables resolution
Micronaut will try to populate method arguments in the following order:
URI variables like
/{id}
.If the request is a
GET
request from query parameters (ie.?foo=bar
).If there is a
@Body
and request allows the body, bind the body to it.if the request can have a body and no
@Body
is defined then try parse the body (either JSON or form data) and bind the method arguments from the body.Finally, if the method arguments cannot be populated return
400 BAD REQUEST
.