davsclaus opened a new issue, #123:
URL: https://github.com/apache/camel-jbang-examples/issues/123

   The contracts group shows the contract-first REST DSL (openapi-server, 
openapi-client), but not the code-first REST DSL, which most Camel REST 
applications use.
   
   A new example, `contracts/rest-code-first`, shows it with the web shop 
orders:
   
   - `GET /orders` and `GET /orders/{id}` answer the orders as JSON through 
`bindingMode: json`, with a 404 and a JSON error for an unknown id,
   - `POST /orders` binds the JSON of a new order to a Java record (`type: 
camel.example.Order`) and answers 201, or 400 without lines,
   - the API description generated from the operations is served at `/openapi` 
(`apiContextPath`).
   
   It comes with a Citrus YAML test that calls each operation, and it is also a 
new task for the AI benchmark. It goes first in the contracts group, before the 
contract-first examples.
   
   _Claude Code on behalf of davsclaus_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to