Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-1361

Control REST resource generation to allow entities to be sent in response to POST request

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • 3.x Future
    • 1.4.3.Final, 2.0.0.Beta3
    • Blessed Plugins
    • None

      The generated REST resources always issue a HTTP 201 Response with a Location header in response to a HTTP POST. Some clients expect the response to contain an entity representation of the newly created resource. Therefore, we should allow users to control whether they want the entity to feature in the response.

      This would require:

      • the method be annotated with @Produces with the mediatype being the chosen resource representation.
      • the entity() method be invoked to populate the entity in the response.

              Unassigned Unassigned
              vineet.reynolds_jira Vineet Reynolds (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated: