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 » IIB 10, REST API Body

Post new topic  Reply to topic
 IIB 10, REST API Body « View previous topic :: View next topic » 
Author Message
lonesheep
PostPosted: Wed Sep 27, 2017 3:10 am    Post subject: IIB 10, REST API Body Reply with quote

Novice

Joined: 12 Sep 2017
Posts: 21

Hi,

Hopefully this will be a simple question!

I've been playing around with the IIB REST API, creating swagger documents and importing these into the IIB.

I've noticed what a request body only seems to be honoured by the IIB when using a HTTP POST, with the toolset dropping the JSON message when using GET, DELETE. Is this expected behaviour?...and can it be overridden?

Many thanks
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 27, 2017 4:39 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

I'm confused.

You're saying that you are trying to send data in the HTTP body with a GET?

And delete?

That's not an IIB question, that's an HTTP question. REST is based on HTTP. IIB exposes HTTP operations in a RESTful manner. But it doesn't change the nature of those operations.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
joebuckeye
PostPosted: Wed Sep 27, 2017 4:50 am    Post subject: Reply with quote

Partisan

Joined: 24 Aug 2007
Posts: 364
Location: Columbus, OH

In true REST, only POST and PUT commands (of the major verbs) can have a message body.

A lot of REST tooling supports this also (as you have found).

If you need a message body then you shouldn't be making a GET call.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Sep 27, 2017 5:43 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

joebuckeye wrote:
If you need send a message body then you shouldn't be making a GET call.

_________________
chmod -R ugo-wx /
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 » IIB 10, REST API Body
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.