You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Marat Gubaidullin (Jira)" <ji...@apache.org> on 2023/01/18 02:40:00 UTC

[jira] [Created] (CAMEL-18944) REST YAML does not work in Spring Boot

Marat Gubaidullin created CAMEL-18944:
-----------------------------------------

             Summary: REST YAML does not work in Spring Boot
                 Key: CAMEL-18944
                 URL: https://issues.apache.org/jira/browse/CAMEL-18944
             Project: Camel
          Issue Type: Bug
    Affects Versions: 3.20.1
            Reporter: Marat Gubaidullin


The following YAML fails when run with Spring Boot
{code:java}
- rest:
    id: rest-dc6e
    post:
      - id: post-248c
        consumes: application/json
        produces: application/json
        to: direct:demo
- route:
    id: demo
    from:
      uri: direct:demo
      id: from-e15c
      steps:
        - log:
            message: ${body}
            id: log-a55d
{code}

command to call service
{code:java}
curl -X POST -H "Content-Type: application/json" --data '{"id":"666","address":"666 Sin Street, Holy City"}' http://0.0.0.0:8080
{code}

REST Configuration component does not change anything




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