-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.19.1
-
Component/s: rest
-
Labels:None
-
Estimated Complexity:Unknown
-
Docs Text:String requestResponse = testProducer.requestBody("rest:GET:health?host=$activityHost:$activityPort", null, String.class)
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)