Parent Blog: Actions Editor – Feature List, Usage and Creation/Maintenance of Actions Project
Actions project acts as a thin layer of abstraction over a service to simplify the consumption of API’s and artefacts. The service definition is in the form of an openAPI – in the case of a REST service or an Edmx/XML Metadata for an OData service .
The OData $metadata file is a CSDL file that is made available to clients to help them discover the structure and organization of the entities, navigations, and the service operations that are available to manage resources beyond the usual create, retrieve, update, or delete operations. It resides on $metadata path of the service URL.
So, we fetch this metadata file from the service that is selected by user and then convert it to openAPI and use it to create Actions project out of it.
e.g. :
Northwind V4 service URL : https://services.odata.org/V4/Northwind/Northwind.svc
The metadata file is available at $metadata path ,
i.e. : https://services.odata.org/V4/Northwind/Northwind.svc/$metadata
We can consume these API sources to create actions project for exposing LCNC artefact, given that they’re OData based services. Some of the examples are CAP & RAP services.
Note: CAP services can be REST or OData. Only in the case of OData we find service definition using $metadata so it can be used to create Actions Project and not the REST based CAP service.
Pre-requisites : Add a destination to a service in your BTP subaccount .
More details are available here: https://help.sap.com/docs/forms-service-by-adobe/sap-forms-service-neo/configure-destination-in-your-sap-btp-subaccount
Steps to consume CAP/RAP/other Destinations :
Click on Learn More , which will take you to SAP help docs where you can get to know more about how to add destination for a particular source .
Select the actions you want to add and click Add button.
Thanks for reading and I hope it helped to understand the concept of configuring Destinations and consuming them in Actions project. Please feel free to leave a comment if there are any questions and I would be happy to receive any feedback.
References: