forked from aphethean/jax-rs-hateoas
-
Notifications
You must be signed in to change notification settings - Fork 0
Extension to JAX-RS 1.x to enable hypermedia in responses.
gauravsri/jax-rs-hateoas
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
JAX-RS-HATEOAS is a small extension to JAX-RS to enable hypermedia in JAX-RS 1.x applications. Adding hypermedia to your existing application is easily done in four steps: * Extend HateoasApplication (or JerseyHateoasApplication) * Add @Linkable annotations to all methods that should be linkable. * Use HateoasResponse instead for building responses with HATEOAS links. The normal Response methods (ok, created, entity, etc.) will now return a HateoasResponseBuilder. The HateoasResponseBuilder contains methods to easily add links to your responses: ** link(String linkId, String rel, Object... params) - adds a link to the referenced linkId (as defined by an @Linkable annotation). ** selfLink(String linkId, Object... params) - adds a link to the referenced linkId with a 'self' rel (rather than the default rel defined in the referenced @Linkable annotation ** ...etc
About
Extension to JAX-RS 1.x to enable hypermedia in responses.
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- Java 93.7%
- HTML 2.5%
- CoffeeScript 2.4%
- CSS 1.2%
- Other 0.2%