«REST Resource»

Stereotype «RESTResource» can be used to mark a JEAF Service to also expose his operations at least partially also as REST Resource. Please be aware that the Stereotype only makes sense to be used on interfaces that are marked as JEAF Service using stereotype «JEAFService».

 

Stereotype

RESTResource

Applicable Elements

Interface

Tagged Values

Name

Type

Description

 path

String

Path under which the REST resource should be available. The attribute is optional. However as from a REST perspective it’s a best practice to define it. So it’s strongly recommended to do so already in the UML model.

produces

MediaType

Optional definition of the media types that are used to encode the responses of the REST calls (e.g. JSON, XML etc.).

consumes

MediaType

Optional definition of the media types that are supported to be used to encode REST requests (e.g. JSON, XML etc.).

 

For further information please refer to: