Get Tags Of File
Ingresando el uuid de un archivo, este endpoint retorna cada uno de los tags asociados a este si es que los tiene.
Endpoint
Headers
Key | Value | Description |
---|---|---|
Content-Type | application/json | |
Authorization | Bearer {{access_token}} | access_token obtained in Atenea |
Url
Method: GET
URL: https://api.trust.lat/chronos/v1/file_registers/:uuid/tags/
caution
Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea
Path Variables
Key | Value | Description |
---|---|---|
uuid | 'ffffffff-ffff-ffff-ffff-ffffffffffff' | Identificador único del archivo |
Code Examples
- Curl
- JavaScript
- Python
curl --location --request GET 'https://api.trust.lat/chronos/v1/file_registers/ffffffff-ffff-ffff-ffff-ffffffffffff/tags/'
import requests
url = "https://api.trust.lat/chronos/v1/file_registers/ffffffff-ffff-ffff-ffff-ffffffffffff/tags/"
payload={}
headers = {}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
var axios = require('axios');
var config = {
method: 'get',
url: 'https://api.trust.lat/chronos/v1/file_registers/ffffffff-ffff-ffff-ffff-ffffffffffff/tags/',
headers: { }
};
axios(config)
.then(function (response) {
console.log(JSON.stringify(response.data));
})
.catch(function (error) {
console.log(error);
});
Responses
HTTP Code: 200 OK
{
"code": 200,
"resource": "Tags",
"data": {
"foofoo": "barbar"
},
"message": "Ok"
}
HTTP Code: 404 Not Found (File not found)
{
"code": 404,
"resource": "File Register",
"message": "Not found"
}
HTTP Code: 404 Not Found (Tags not present in file)
{
"code": 404,
"resource": "Tags",
"message": "Not found"
}