You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Federico Mariani (Jira)" <ji...@apache.org> on 2023/04/20 15:26:00 UTC
[jira] [Updated] (CAMEL-19284) camel-restdsl-openapi-plugin - Add type and outType to Rest DSL
[ https://issues.apache.org/jira/browse/CAMEL-19284?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Federico Mariani updated CAMEL-19284:
-------------------------------------
Priority: Minor (was: Major)
> 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
> Affects Versions: 3.20.3, 4.0-M2
> Reporter: Federico Mariani
> Priority: Minor
>
> 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)