Question

How to pass JSON payload as request for Connect-REST if we have to use GET method?

We are connecting to REST Services which accept JSON payload as request. Previously we have been able to implement this without any issues using POST method. However, now the hosting system has updated the services to use GET method only.

How can we pass JSON payload as request if we are using GET as method? The Connect-REST form does not provide option for mapping request from JSON payload for GET method.

**Moderation Team has archived post**

This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.

Correct Answer
January 28, 2016 - 11:43pm

GET requests do not have a payload, only URL which may contain query parameters.

Check with service provider to know how service is expecting input data.

Comments

Keep up to date on this post and subscribe to comments

January 28, 2016 - 11:43pm

GET requests do not have a payload, only URL which may contain query parameters.

Check with service provider to know how service is expecting input data.

February 11, 2016 - 9:40pm
Response to ChandraSekharbkinactive

Thank you for your response!

Some apps like CURL and RESTClient allow you to pass a JSON payload as request when you use GET. However, most modern tools do not have this option.

We were able to convince the publisher to change the method of the services from GET to POST to resolve this.