Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0
    • Fix Version/s: 2.1
    • Component/s: spec
    • Labels:
      None

      Description

      With JAX-RS 2.0 initial support for HATEOAS was introduced with building Link headers (server side) and following them (client side).

      With JAX-RS 2.1 this support should get improved by a declarative way of defining links. JAYWAY provided an idea how this could look like in an HATEOAS talk available on YouTube (https://www.youtube.com/watch?v=CcQE9481lMs) and I'd like to propose a discussion on their proposal for 2.1.

      In a nutshell, the idea is to have a @Rel annoation which declares the relationship type (hence a potential link) to other resources within a resource class. An entity interceptor could use reflection to build link headers from that meta information and add these to the response.

      As a result, no more dealing with .link() is needed on the server side when implementing a RMM Level 3 application, which makes the server sided code much cleaner and technology-free (pure application objects).

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Unassigned
            Reporter:
            mkarg
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: