Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-18944

REST YAML does not work in Spring Boot

    XMLWordPrintableJSON

Details

    • Unknown

    Description

      The following YAML fails when run with Spring Boot

      - 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
      

      command to call service

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

      REST Configuration component does not change anything

      Attachments

        Issue Links

          Activity

            People

              davsclaus Claus Ibsen
              marat.gubaidullin@gmail.com Marat Gubaidullin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: