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

REST endpoint should also consume/produce JSon

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 2.7.1.Final
    • 2.6.0.Final
    • Scaffold
    • None

      When a REST endoint is generated, there is only support for XML MIMETYPE

      @GET
      @Produces("application/xml")
      public List<Book> listAll(@QueryParam("start") Integer startPosition, @QueryParam("max") Integer maxResult)
      

      It would be good to have both XML and JSON

      @GET
      @Produces({"application/xml","application/json"})
      public List<Book> listAll(@QueryParam("start") Integer startPosition, @QueryParam("max") Integer maxResult)
      

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

              Created:
              Updated:
              Resolved: