REST API code example
- Last Updated: January 16, 2024
- 1 minute read
- OpenEdge
- Version 12.8
- Documentation
An example of the code used in the
samplwebapp.war file shipped with OpenEdge Management is provided in
Table 5:
|
The REST API framework scans each class for methods that are public and have a
RestMapping annotation defined. The annotation
specifies the URI pattern and HTTP method that are to be handled. The RequestMapping annotation with a specified path
parameter is the least required annotation. If the method parameter is not
specified, the annotation considers HTTP GET as the
default method parameter.Note: Each class can contain as many
annotated methods as required. Each method must handle only one combination of
URI pattern and HTTP method.