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

REST DSL/component method Uppercase

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.19.1
    • Fix Version/s: 2.19.4, 2.20.0
    • Component/s: rest
    • Labels:
      None
    • Estimated Complexity:
      Unknown
    • Docs Text:
      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

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              poloche Paolo Lizarazu
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: