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

camel-rest - Contract First - Make it possible to build response from example data

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 4.6.0
    • camel-core, rest
    • None
    • Unknown

    Description

      If you have "mock" as missing operation then we attempt to load responses from file system. But if none is found, we should build an empty response based on the contract and verb.

      In the contract we can find "example" for various fields such as for Pet where there are examples for name, tag and whatnot. We can grab them from the contract and automatic put on the response object.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: