Request Detail:
- Base URL: {host}/ASMSAPI/
- URI: api/v9/article/{id}?addHit={addHit}
- 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/article/{id}?addHit={addHit}
Parameters:
Name | Guy | Obligatory | Description |
---|---|---|---|
Id | Numerical | Yes | Item identifier. |
addHit | Boolean | No | It will only be mandatory for when the user reads the article and it counts as a visit. |
Examples of uri:
api/v9/article/1746 api/v9/article/628?addHit=true api/v9/article/628?addHit=false
Answer:
The service will return a Json with the following structure:
{
"authorName": "e1",
"autorId": 3,
"classId": 0,
"content": "Omnis voluptatem non asperiores quod eaque quo odio. Architecto rerum quam. Adipisci nemo at non. Eaque et facilis est.",
"createdDate": 1696811872180,
"description": "Quis accusamus praesentium labore cupiditate.",
"fields": {
"additionalBool": 0,
"additionalDate": null,
"additionalFloat": 0,
"additionalInt": 0,
"additionalString": null
},
"groupId": 6,
"groupName": "Especialista de Selección",
"hitTotal": 0,
"id": 49,
"identifier": "artículo Albi.",
"interfaceId": null,
"isFavorite": false,
"isPublic": true,
"isRatedByUser": false,
"keyword": "prueba",
"lastModified": 1696811872180,
"modifierId": 3,
"projectId": 4,
"public": 1,
"ratingTotal": 0,
"reasonId": null,
"reasonName": null,
"responsibleId": 1,
"responsibleName": "APPLICATION ADMINISTRATOR",
"stateId": 174,
"stateName": "Diseño",
"stringStateColor": "139.78.168",
"title": "artículo de prueba.",
"typeId": 12,
"typeName": "Errores Conocidos",
"url": ""
}
Error messages:
Code | HTTP status | Error Message |
---|---|---|
500 | InternalServerError | FailureAddRelation |