Viewing Enumeration Values
You use this API to view the enumeration values for a particular code.
Request
-
HTTP Method: GET
-
URL: Application_URL/services/api/v1/enumerationvalue?type=<ENUMERATION_TYPE>&code=<CODE>
-
Query Parameters: type and code
type: the type of enumeration.
code: code of the enumeration value
Description: Use this API to get a particular code value of an enumeration.
-
Example URL: Application_URL/services/api/v1/enumeration?type=EquipmentTracking&code=1
-
Authorization: You must have the roles MODEL_READ, MODEL_EDIT, or MODEL_DELETE assigned to your user IDin the SAP Cloud Platform account.
Response
-
The system returns the model components for the specified model ID and version.
-
If the model components with specified IDs and version do not exist, or you do not have appropriate authorizations, system returns an appropriate error message.
For more information, see https://help.sap.com/doc/e8d1e2658da546de98ef9a6038474334/1902/en-US/model.html#enumerationvalue_get.