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

  • Thread starter Thread starter agent_008_nl
  • Start date Start date
Status
Not open for further replies.
A

agent_008_nl

Guest
Forgot to mention my name, Stefan Houtzager it is. Strange. I'm on 11.5 and see f.e. the code below after defining the serviceinteface (rightmouse click in pds, above the code-editor choose "progress openedge" and then "define service interface". For the rest I cannot help you, sorry. Your wish looks fair to me, I had a comparable one: community.progress.com/.../18051.aspx Regards, Stefan. @openapi.openedge.export FILE(type="REST", executionMode="singleton", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resource FILE(name="custom", URI="/custom", schemaName="dsPurchaseOrder", schemaFile=""). /*------------------------------------------------------------------------ File : custom.p Purpose : Syntax : Description : Author(s) : Created : Wed May 20 12:12:59 CEST 2015 Notes : ----------------------------------------------------------------------*/ BLOCK-LEVEL ON ERROR UNDO, THROW. {"dsPurchaseOrder.i"} {"dsFetchRequest.i"} /* *************************** Definitions ************************** */ @openapi.openedge.export(type="REST", useReturnValue="false", writeDataSetBeforeImage="false"). @progress.service.resourceMapping(type="REST", operation="read", URI="?filter=~{filter~}", alias="", mediaType="application/json"). procedure ReaddsPurchaseOrder: define INPUT parameter filter AS CHARACTER no-undo. define OUTPUT parameter DATASET for dsPurchaseOrder. END procedure.

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