|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
IIB 10, REST API Body |
« View previous topic :: View next topic » |
Author |
Message
|
lonesheep |
Posted: Wed Sep 27, 2017 3:10 am Post subject: IIB 10, REST API Body |
|
|
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 |
|
 |
mqjeff |
Posted: Wed Sep 27, 2017 4:39 am Post subject: |
|
|
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 |
|
 |
joebuckeye |
Posted: Wed Sep 27, 2017 4:50 am Post subject: |
|
|
 Partisan
Joined: 24 Aug 2007 Posts: 365 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 |
|
 |
mqjeff |
Posted: Wed Sep 27, 2017 5:43 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|