[ 
https://issues.apache.org/jira/browse/CAMEL-25765?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen resolved CAMEL-25765.
---------------------------------
    Fix Version/s:     (was: 4.24.0)
       Resolution: Duplicate

Moved to apache/camel-jbang-examples#123 
(https://github.com/apache/camel-jbang-examples/issues/123): 
camel-jbang-examples tracks its work in its own GitHub issues. The example is 
in PR #118 there.

_Claude Code on behalf of davsclaus_

> camel-jbang-examples - contracts/rest-code-first: the REST DSL with JSON 
> binding to a Java record and a generated API description
> ---------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-25765
>                 URL: https://issues.apache.org/jira/browse/CAMEL-25765
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-jbang
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>            Priority: Minor
>
> The contracts rung of camel-jbang-examples 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 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 is placed first in the contracts group, 
> before the contract-first examples.
> _Claude Code on behalf of davsclaus_



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

Reply via email to