Données
GET https://linktrle.com/api/data/
curl --request GET \
--url 'https://linktrle.com/api/data/' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/api/data/' \
--header 'Authorization: Bearer {api_key}' \
Paramètres | Détails | Description |
---|---|---|
page | Optionnel Entier | Le numéro de page à partir duquel vous souhaitez obtenir des résultats. Par défaut, 1 . |
results_per_page | Optionnel Entier | Combien de résultats souhaitez-vous par page. Les valeurs autorisées sont : 10 , 25 , 50 , 100 , 250 , 500 , 1000 . Par défaut, 25 . |
{
"data": [
{
"id": 1,
"biolink_block_id": 1,
"link_id": 1,
"project_id": 1,
"type": "mail",
"data": {
"email": "email@example.com",
"name": "John doe"
},
"datetime": "2021-09-17 20:56:23"
},
],
"meta": {
"page": 1,
"results_per_page": 25,
"total": 1,
"total_pages": 1
},
"links": {
"first": "https://linktrle.com/api/data?&page=1",
"last": "https://linktrle.com/api/data?&page=1",
"next": null,
"prev": null,
"self": "https://linktrle.com/api/data?&page=1"
}
}
GET https://linktrle.com/api/data/{datum_id}
curl --request GET \
--url 'https://linktrle.com/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
{
"data": {
"id": 1,
"biolink_block_id": 1,
"link_id": 1,
"project_id": 1,
"type": "mail",
"data": {
"email": "email@example.com",
"name": "John doe"
},
"datetime": "2021-09-17 20:56:23"
}
}
DELETE https://linktrle.com/api/data/{datum_id}
curl --request DELETE \
--url 'https://linktrle.com/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \
--url 'https://linktrle.com/api/data/{datum_id}' \
--header 'Authorization: Bearer {api_key}' \