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

paramsvaluedescription
slugstringTo get format by slug
limitnumberTo limit number of tags
nextstringTo get next tags
previousstringTo get previous tags
sortBystringTo sort by field
sortAscbooleanTo set sort by ascending

Get tag

GET /api/v1/tags/:key

Path parameters

paramsdescription
keyTo 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"
}
}