Posted: Fri Jan 15, 2016 9:32 am Post subject: Rest Api implementation in IIB v10
Novice
Joined: 15 Jan 2016 Posts: 10
Hello,
I am creating a rest api in IIB v10.0.0.2. In that process, I created a swagger document with "POST" operation in it. When I try to invoke, the webpage is displaying a "405 Method Not Allowed" error saying "BIP6311E: REST API 'XXX' does not support method 'GET' for URL 'XXX' ".
Joined: 24 Aug 2007 Posts: 365 Location: Columbus, OH
How are you invoking the API?
If you just put the URL into a browser and hit return the response you got would be the exact one I would expect to see.
But otherwise from what you said it appears the error is clear cut, you created an endpoint that only accepts POST requests and you submitted a GET request.
As posted above, using a web browser will only make GET requests (unless you write JavaScript code to do otherwise).
Don't use a web browser for this - use a decent REST API testing tool instead - for example Swagger UI or SoapUI.
Both of these tools will accept the Swagger URL that is available for a deployed REST API.
You will need to enable CORS on the integration server hosting the REST API if you want to use Swagger UI.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum