Forum Post: RE: Faster way to map parameters in rest service?

Status
Not open for further replies.
R

Ramadevi Dhavala

Guest
Hi, As of now we don't have the support to map the parameters automatically for a rest service, from rest resource URI editor of progress developer studio. You have to manually create the mappings for each parameter in both the tabs. Thanks, Rama. From: WinningJr [mailto:bounce-WinningJr@community.progress.com] Sent: Monday, May 11, 2015 5:48 PM To: TU.OE.Development@community.progress.com Subject: RE: [Technical Users - OE Development] Faster way to map parameters in rest service? RE: Faster way to map parameters in rest service? Reply by WinningJr I might be completely misunderstanding, but…. Don’t create individual output parameters if you didn’t want to map them. If you want JSON mapped to the body, return JSON and map it to the body (so, only 1 output parameter in your business entity - “OUTPUT TABLE ttTableName”). The only problem I have with it right now is that you can’t omit the outer object (unless that has been recently fixed). From: stefan.tersin@exicom.se [mailto:bounce-stefantersinexicomse@community.progress.com] Sent: Monday, May 11, 2015 5:42 AM To: TU.OE.Development@community.progress.com Subject: [Technical Users - OE Development] Faster way to map parameters in rest service? Faster way to map parameters in rest service? Thread created by stefan.tersin@exicom.se Hello, in the rest resource uri editor (using a Rest service project in dev studio) is there a way to automatically do the mapping in mapping definitions instead of drag/drop every parameter? For example to automatically map output parameters to response body parameters (to get a json response). With webservices one can manually edit the xpxg files and compile them, how do one do the same with rest services (what files and where are they located)? We are using OE 11.3.2, but if there is a better solution in a later version please let us know. Stop receiving emails on this subject. Flag this post as spam/abuse. Stop receiving emails on this subject. Flag this post as spam/abuse.

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