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 » RESTful service with JSON payload

Post new topic  Reply to topic
 RESTful service with JSON payload « View previous topic :: View next topic » 
Author Message
wmqstankela
PostPosted: Thu Sep 20, 2018 1:55 am    Post subject: RESTful service with JSON payload Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Hi all,

Is it possible on IIB V10 to expose RESTful service GET method that expects to receive JSON data as a body element in request?

I don't see it in REST API description in Integration Toolkit. For POST and PUT you have Request Body section but in GET and DELETE you don't and you can't even add it.

Can someone help me about this.
Back to top
View user's profile Send private message
timber
PostPosted: Thu Sep 20, 2018 3:58 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1280

It's not good practice to include a body with a GET, and the Swagger/OpenAPI specification disallows it.
See https://swagger.io/specification/#operationObject
Quote:
The request body applicable for this operation. The requestBody is only supported in HTTP methods where the HTTP 1.1 specification RFC7231 has explicitly defined semantics for request bodies. In other cases where the HTTP spec is vague, requestBody SHALL be ignored by consumers.
Back to top
View user's profile Send private message
wmqstankela
PostPosted: Thu Sep 20, 2018 7:25 am    Post subject: Reply with quote

Voyager

Joined: 29 Feb 2016
Posts: 94

Thanks alot timber on your answer!
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 » RESTful service with JSON payload
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.