Viewing a List of Models Based on the Filters
You can view a list of all models that match a search criteria. Additionally, you can also use this API to search for models based on model fields with the required filter query parameters.
Request
-
HTTP Method: GET
-
URL: Application_URL/services/api/v1/models
-
Query parameters: $filter
$filter: allows you to specify a search text using which you can filter the models
-
Example URL: Application_URL/services/api/v1/models?$filter=substringof(<FILTER VALUE>, <HEADER PROPERTIES>)
Description: Where FILTER_VALUE is the parameter to search the text or a substring of the text and <HEADER_PROPERTIES> is the attribute that contains the text.
For filters, this API follows ODATA URI conventions. For more information, seehttps://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models_get.
-
Authorization: You must have the roles MODEL_DELETE or MODEL_EDIT or MODEL_READ assigned to your user IDin the SAP Cloud Platform account.
Response
-
If one or more models exist that match the filter criteria, system returns an array of models. Otherwise, system returns a blank array of models.
For more information, see https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models_get.
-
If system cannot retrieve models that match the filter criteria, system returns appropriate error codes.
For more information, see https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#models_get .