Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-2327

Improve camel-cxf-rest example

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 5.0.2
    • 5.0.2, 5.1.0, 6.0.0.M1, 6.0.0
    • examples
    • None

    Description

      Address the following issues with the current camel-cxf-rest example implementation:

      • ServiceHandler should use a more appropriate data structure for storing person instances (Map instead of List).
      • ServiceHandler should follow REST principles by using appropriate HTTP response codes and messages (HTTP 201 when creating persons, return URI of created person, etc.).
      • ServiceHandler should follow JAX-RS programming model (use Response instance where appropriate).
      • Client should show HTTP response codes and response messages.
      • Fix some general issues (e.g. remove unneeded fields and annotations, use appropriate access modifiers)

      Attachments

        Activity

          People

            sobkowiak Krzysztof Sobkowiak
            gzurowski Gregor Zurowski
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: