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

REST DSL/component method Uppercase

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.19.1
    • 2.19.4, 2.20.0
    • rest
    • None
    • Unknown
    • String requestResponse = testProducer.requestBody("rest:GET:health?host=$activityHost:$activityPort", null, String.class)

    Description

      when we are using rest component we need to set the method in uppercase otherwise this will return error 405

      bad example : String requestResponse = testProducer.requestBody("rest:get:health?host=$activityHost:$activityPort", null, String.class)

      working example
      String requestResponse = testProducer.requestBody("rest:GET:health?host=$activityHost:$activityPort", null, String.class)

      Attachments

        Activity

          People

            davsclaus Claus Ibsen
            poloche Paolo Lizarazu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: