The Open Data Protocol (OData) includes the standard
Create, Read, Update and
Delete) operations that map to the HTTP methods
POST, GET, PUT/MERGE and
In addition, OData supports further service operations (function imports) that can be invoked by the HTTP methods
POST for anything that cannot be mapped to the standard
CRUD operations. You can implement the additional service operations in your back end.
In this training, you use CAP as your back end and you will create a function import within your CAP data model.
When you add a definition of the function import to your CAP data model, it becomes a part of the service metadata. You will find it in the
The screenshot above shows that the function import is added to the service container alongside the entity sets of the service.
In the same
$metadata document, you can find the API of the function import.
As soon as the function import is part of
$metadata, it can be used on the client side in your SAP Fiori elements application.