Parameter annotations
- Last Updated: February 11, 2026
- 3 minute read
- OpenEdge
- Version 13.0
- Documentation
Several parameter annotations are available that perform type conversion,
resource lookup, URL parameter mapping, and query parameter mapping from the HTTP
request. The FathomAPIServletHandler has methods to
access the URL, query parameters, HTTP requests and response objects.
You can define any number of parameters for a method. If any parameter cannot be resolved based on its annotation, the parameter value is set to null for Object parameters and default value for Java scalar types (int, float).
A few annotations are provided for your convenience; using them is not mandatory:
QueryParamAdd this to a method parameter to retrieve a value from the query to the URL.
|
PathParamAdd this to a method parameter to retrieve a value from a parameterized URL.
|
RequestPathParamAdd this to a method parameter to assign the parameter to a source object based on a fully qualified resource key. The value of the key is derived from a URL parameter.
If the resource defined from the value of the key
does not exist, the method is not called and a 404 Resource
Not Found response is returned to the caller. If the resource exists,
but cannot be cast to the data type defined by the method parameter, the caller
receives a 403 Bad Request with a JSON response
body. The error response indicates that incorrect resource type was discovered by
the resource key in the URL.
|
FilesHandles an HTTP
multi-form encoded request that contains files. The files are saved to disk and
passed as a list of UploadedFile objects with
details from the POST method.
|
BodyPUT, POST, and DELETE methods. HTTP requests that user GET method do not have body content.POST method. If the
charset field of the Content-Type header is not available, OpenEdge Management
assumes that the character set is IS8859-1. If
the Content-Type is specified as application/JSON, the header must be UTF-8.
|
OpenEdge Management uses the Jackson JSON parser. If the request Content-Type is specified as application/JSON, OpenEdge Management attempts to read the request content and convert it to a Jackson ObjectNode implementation.
|
MyThing and uses Body annotation to import a request body from the POST method to a MyThing object. Jackson maps properties from the JSON request
body.
|
|