Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-17040

rest-dsl - Add option to return http 204 when no data in response

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 3.x
    • camel-core, rest
    • None
    • Unknown

    Description

      For example if you have a json response as an empty list, then you can get a 200 OK with [] as response.

      Or with an XML then it may be an empty xml root object.

      It may be desirable to have an option you can set to true to let Camel auto-detect this and return no body and 204 instead.

      Attachments

        Activity

          People

            Unassigned Unassigned
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: