[
https://issues.apache.org/jira/browse/CAMEL-19284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-19284.
---------------------------------
Resolution: Fixed
If you enable dto generation then type and outType is now included
> camel-restdsl-openapi-plugin - Add type and outType to Rest DSL
> ---------------------------------------------------------------
>
> Key: CAMEL-19284
> URL: https://issues.apache.org/jira/browse/CAMEL-19284
> Project: Camel
> Issue Type: New Feature
> Components: rest, tooling
> Affects Versions: 3.20.3, 4.0-M2
> Reporter: Federico Mariani
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.5.0
>
>
> If _camel-restdsl-openapi-plugin_ is used to generate DTOs, it would be nice
> to have type(..) and outType(..) set on the Rest DSL.
> ex.
> {code:java}
> rest("/v2")
> .put("/pet")
> .id("updatePet")
> .consumes("application/json,application/xml")
> .produces("application/xml,application/json")
> _.type(Pet.class)_
> .param()
> .name("body")
> .type(RestParamType.body)
> .required(true)
> .description("Pet object that needs to be added to the
> store")
> .endParam()
> .to("direct:updatePet")
> {code}
> given
> {code:java}
> ...
> "/pet": {
> "put": {
> "requestBody": {
> "description": "Pet object that needs to be added to the
> store",
> "content": {
> "application/json": {
> "schema": {
> "$ref": "#/components/schemas/Pet"
> }
> },
> ...
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)