How to resolve 405: Method Not Allowed error in REST API

0
Hi all, I have created 2 app. Consider app1 and app2. In app one I have created some entities and I am exposing them using POST method. And in app2  I am trying to consume using Get method. But I am getting bellow error. 405: Method Not Allowed     at MyFirstModule.Microflow (CallRest : 'Call REST (GET)') Advanced stacktrace:   How to resolve this error. Please Guide. Thanks in advnaced.
asked
2 answers
1

Hi,

Ensure that the endpoint you are trying to access with the "GET" method in app2 is configured to accept "GET" requests. If the endpoint is meant to handle only "POST" requests, you might need to change your approach.

answered
0

If app1 expects the POST method, then app2 should use the POST method (and not the GET method). Status code 405 means that app1 is telling app2 to use a different method.

answered