This REST framework supports the application/json
media type in the Content-Type of the requestor request header. The Oracle media type, defined as application/vnd.oracle.resource+json
and the HAL media type, defined as application/hal+json
are also supported.
The endpoint method should be public, and if the endpoint response is a representation of the resource, the return type should be RepresentationModel
. The model holds the data needed to support hypermedia formats. It includes properties, links, the representation state and any embedded resources URI that should be included in the response.
Note: In some cases, the endpoint method may return only the status code. If this is the case, you should use the javax.ws.rs.core.Response
class that has the javax.ws.rs.core.Response.Status
enum to set and return the proper status code.