Tags
Get tags
GET /api/v1/tags
{
"data" : [
{
"id" : "5c38f509569ed47e00c7004a",
"name" : "Black Money",
"slug" : "black-money",
"clientId" : "factly",
"createdDate" : "2019-01-11T19:56:57.619Z",
"lastUpdatedDate" : "2019-01-11T19:56:57.619Z",
"class" : "com.factly.dega.domain.Tag"
},
{
...
},
....
],
"paging": {
"next": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
"hasNext": false,
"previous": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
"hasPrevious": false
}
}
Query parameters
params | value | description |
---|---|---|
slug | string | To get format by slug |
limit | number | To limit number of tags |
next | string | To get next tags |
previous | string | To get previous tags |
sortBy | string | To sort by field |
sortAsc | boolean | To set sort by ascending |
Get tag
GET /api/v1/tags/:key
Path parameters
params | description |
---|---|
key | To get tag by Object Id or slug |
Get a particular tag by Object Id
GET /api/v1/tags/$tagId
{
"data" : {
"id" : "5c38f509569ed47e00c7004a",
"name" : "Black Money",
"slug" : "black-money",
"clientId" : "factly",
"createdDate" : "2019-01-11T19:56:57.619Z",
"lastUpdatedDate" : "2019-01-11T19:56:57.619Z",
"class" : "com.factly.dega.domain.Tag"
}
}
Get a particular tag by slug
GET /api/v1/tags/$tagSlug
{
"data" : {
"id" : "5c38f509569ed47e00c7004a",
"name" : "Black Money",
"slug" : "black-money",
"clientId" : "factly",
"createdDate" : "2019-01-11T19:56:57.619Z",
"lastUpdatedDate" : "2019-01-11T19:56:57.619Z",
"class" : "com.factly.dega.domain.Tag"
}
}