ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Rest Api implementation in IIB v10

Post new topic  Reply to topic
 Rest Api implementation in IIB v10 « View previous topic :: View next topic » 
Author Message
pchalla
PostPosted: Fri Jan 15, 2016 9:32 am    Post subject: Rest Api implementation in IIB v10 Reply with quote

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' ".

Is there anyone with information regarding this?

Thanks in advance...
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Fri Jan 15, 2016 10:25 am    Post subject: Reply with quote

Partisan

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.
Back to top
View user's profile Send private message
stoney
PostPosted: Fri Jan 15, 2016 2:00 pm    Post subject: Reply with quote

Centurion

Joined: 03 Apr 2013
Posts: 140

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Rest Api implementation in IIB v10
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.