Versions
Versions this documentation is relevant for:
- 8.7.0+
List
The Asset – GetAsset API call reads a full list of existing Assets from Eyelit MES-M with no filtering. Using the Asset-GetAsset API call has no impact on the data within the given Eyelit MES-M application, it is read-only.
Figure 1 shows the logic used within the Asset – GetAsset API call.
Figure 1 - Logic within Asset/GetAsset API Call
Data Prerequisites
There is no data required in MESTEC to act as a pre-requisite to make the API call to list Assets.
Request
Table 1 shows the method and endpoint required to make the API call to list Assets.
Table 1 - Outbound Message Detail for Asset - GetAsset
Method | URL Structure | Endpoint |
GET | https://[environment].mestec.net | /api/Asset/GetAsset |
As no parameters can be passed into this endpoint, the request requires no body. If a body is passed into the payload, it will be ignored and the full list of all Assets will be returned.
Sample Request
The body of the request should consist of only the call to the endpoint as specified above.
Response
When using the Asset- GetAsset API call, a JSON payload will be returned containing data in the following structure:
Sample Response
See below for sample use cases with examples of the JSON payload format returned.
No Asset exist:
Multiple Assets exist: