Request Detail:
- Base URL: {host}/ASMSAPI/
- URI: api/v9/model/{itemType}/list
- Type: GET
-
Required headings:
- Content-Type: application/json
- X-Authorization: Bearer {token}
URL Description
- {host}: It represents the domain of the environment in which the API is located.
- ASMSAPI/: Fixed API prefix.
- URI: Specific endpoint for the request.
⚐ EXAMPLE URL:
https://{host}/ASMSAPI/api/v9/model/{itemType}/list
Parameters:
Name | Guy | Obligatory | Description |
---|---|---|---|
itemType | Numerical | Yes | Identifier of the type of item, in this case it is an article. |
Examples of uri:
api/v9/model/articles/list api/v9/model/7/list
Answer:
The service will return a Json with the following structure:
{
"content": [
{
"description": "Errores Conocidos",
"id": 12,
"itemType": 7,
"name": "Errores Conocidos"
},
{
"description": "Instructivos",
"id": 10,
"itemType": 7,
"name": "Instructivos"
},
{
"description": "Procedimientos",
"id": 11,
"itemType": 7,
"name": "Procedimientos"
}
],
"totalItems": 3
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
500 | InternalServerError | FailureAddRelation |