Forum Post: RE: REST service for JSON payload - OE 11.3.1

  • Thread starter Thread starter Srinivas Munigala
  • Start date Start date
Status
Not open for further replies.
S

Srinivas Munigala

Guest
I was not very keen about the “request” tag, that is my mistake, my apologies. Yes, it is specific to OpenEdge. If you do not want to have that in the payload, you just map the objects directly to the body instead of the node (i.e. [Drop a parameter here…]). From: Tony [mailto:bounce-tonyj@community.progress.com] Sent: Thursday, May 29, 2014 2:25 PM To: TU.OE.Development@community.progress.com Subject: RE: REST service for JSON payload - OE 11.3.1 RE: REST service for JSON payload - OE 11.3.1 Reply by Tony I could not find any reference on the web that states the JSON payload for a REST service POST must have the opening {"request": .. } tag. I'm thinking this is an OE requirement when you want to map objects in the payload to input parameters of a procedure. This is something that I discovered when I created my REST service. I tested it by POSTing a payload with and without the {"request": .. } tags. The payload without the tag failed to map the objects. The payload with the tag mapped the objects to the input parameters and my procedure was able to read the value. So back to my original question, can the REST service 'Insert' the {"request": .. } to an incomming POST? Thanks, Tony. Stop receiving emails on this subject. Flag this post as spam/abuse.

Continue reading...
 
Status
Not open for further replies.
Back
Top