Skip to Content
0
Sep 17, 2023 at 01:49 PM

SAP RAP Generic API

72 Views

Hi Experts,

I am working on building a generic API using RAP framework. I have built a custom entity with 3 fields, interface_id, input(type rawstring), output(type rawstring). Implemented the 'Create method' of the Behavior Implementation Class to handle the processing of the input message, once the input is processed, i want to set the output element with the appropriate response. In my scenario there will not any underlying table for this CDS and Query provider Class is not implemented. Now i am stuck in the final step where i want to set the field output with the response in the 'Create Method'. While testing in Postman will pass 'interface_id' & 'input' as the request structure and Postman Response should have values for 'interface_id' , 'input' and 'output'. How can i achieve this ?