{new} @Path
The {@link oaj.http.annotation.Path @Path} annotation is used to retrieve request path parameters.
The most typical scenario is to simply use the value field to define path parameter names:
This is functionally equivalent to the following code:
Note that the path variable name
The special name Map or bean.
The registered {@link oajr.RestContext#REST_partParser REST_partParser} is used to convert strings
to POJOs and controls what POJO types are supported.
By default, this is the {@link oaj.oapi.OpenApiParser} which supports the standard Swagger-based rules for parsing.
For example, the following shows how a pipe-delimited list of comma-delimited numbers (e.g. Longs:
Input will be converted based on the types and formats defined in the schema definition.
Input validations such as minLength/maxLength that don't match the input will result in automatic 400 Bad Request responses.
For more information about valid parameter types, see {@doc juneau-marshall.OpenApiDetails.Parsers OpenAPI Parsers}
The
This information is used to populate the auto-generated Swagger documentation and UI.
{@doc DefaultRestSvlVariables} (e.g. "$L{my.localized.variable}") are supported on annotation fields.