The following tools and frameworks are used in the SDK for
creating a REST Web service:
The following options cover how to create REST services:
- Understanding Collections
(Primary and Secondary) and HATEOAS.
- Creating RESTful WebService with
Custom Media Types along with
media type Versioning.
- Using and applying REST frameworks:
- Handling Exceptions
—This section describes a mechanism by which exceptions
identifying common error conditions can be thrown in the
EJB code, and mapped to Standard
HTTP Status Codes.
- Sorting, Paging, Filtering,
and Field Selection on Collections—This section
describes the usage and application of server side
sorting, paging, filtering, and field selection. The usage
includes how to leverage the provided functionality,
whereas the application of this feature enables you to
enable a REST API to support it.
- Authentication and Authorization—This
section describes how to secure a REST API (RBAC-based
security) so that only an authenticated and authorized
user can access it.
- Notification—Notification
framework is used to push notifications from server to
client. This section describes the usage and application
of this framework.
- Tagging—The grouping or
ungrouping of objects is termed tagging or untagging,
respectively. This section describes the usage and
application of this framework to tag and untag the
relevant objects.
- Discovery—It is important
that each RESTful Web service publishes its metadata to
be consumed by automated applications or by users. This
section describes the usage and application of this
framework to enable or disable the discovery of a
RESTful Web service.
- Consuming a REST API from another RESTful WebService or an EJB seamlessly using
JSServiceClient or JerseyClient.