Claus Ibsen created CAMEL-20652:
-----------------------------------

             Summary: camel-rest - Contract First - Make it possible to build 
response from example data
                 Key: CAMEL-20652
                 URL: https://issues.apache.org/jira/browse/CAMEL-20652
             Project: Camel
          Issue Type: Improvement
          Components: camel-core, rest
            Reporter: Claus Ibsen
             Fix For: 4.6.0


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.





--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to