Claimants
Get claimants
GET /api/v1/claimants
Query paramaters
{
"data": [
{
"name": "Government of India",
"slug": "government-of-india",
"media": {
"name": "https://storage.degacms.com/factly.png",
"type": "image/png",
"url": "https://storage.degacms.com/factly.png",
"title": "government-of-india",
"slug": "government-of-india1",
"id": "5d8f5ce993ace2000112a8c6",
"class": "com.factly.dega.domain.Media",
"fileSize": "112448",
"altText": "government-of-india",
"uploadedBy": "shashi@factly.in",
"publishedDate": "2019-09-28T13:15:21.348Z",
"lastUpdatedDate": "2019-09-28T13:15:21.348Z",
"clientId": "factly",
"createdDate": "2019-09-28T13:15:21.348Z",
"relativeURL": "/factly.png",
"sourceURL": "https://images.degacms.com/factly.png"
},
"id": "5d8f5c68f4f39f0001e419e9",
"class": "com.factly.dega.domain.Claimant",
"clientId": "factly",
"createdDate": "2019-09-28T13:13:00.000Z",
"lastUpdatedDate": "2019-09-28T13:15:28.083Z"
},
{
...
},
...
],
"paging": {
"next": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
"hasNext": false,
"previous": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
"hasPrevious": false
}
}
params | value | description |
---|---|---|
limit | number | To limit number of claimants |
next | string | To get next claimants |
previous | string | To get previous claimants |
sortBy | string | To sort by field |
sortAsc | boolean | To set sort by ascending |
Get claimant
GET /api/v1/claimants/:key
Path paramaters
params | description |
---|---|
key | To get claimant by Object Id or slug |
Get a particular claimant by Object Id
GET /api/v1/claimants/$claimantId
{
"data" :{
"name": "Government of India",
"slug": "government-of-india",
"media": {
"name": "https://storage.degacms.com/factly.png",
"type": "image/png",
"url": "https://storage.degacms.com/factly.png",
"title": "government-of-india",
"slug": "government-of-india1",
"id": "5d8f5ce993ace2000112a8c6",
"class": "com.factly.dega.domain.Media",
"fileSize": "112448",
"altText": "government-of-india",
"uploadedBy": "shashi@factly.in",
"publishedDate": "2019-09-28T13:15:21.348Z",
"lastUpdatedDate": "2019-09-28T13:15:21.348Z",
"clientId": "factly",
"createdDate": "2019-09-28T13:15:21.348Z",
"relativeURL": "/factly.png",
"sourceURL": "https://images.degacms.com/factly.png"
},
"id": "5d8f5c68f4f39f0001e419e9",
"class": "com.factly.dega.domain.Claimant",
"clientId": "factly",
"createdDate": "2019-09-28T13:13:00.000Z",
"lastUpdatedDate": "2019-09-28T13:15:28.083Z"
}
}
Get a particular claimant by slug
GET /api/v1/claimants/$claimantSlug
{
"data" :{
"name": "Government of India",
"slug": "government-of-india",
"media": {
"name": "https://storage.degacms.com/factly.png",
"type": "image/png",
"url": "https://storage.degacms.com/factly.png",
"title": "government-of-india",
"slug": "government-of-india1",
"id": "5d8f5ce993ace2000112a8c6",
"class": "com.factly.dega.domain.Media",
"fileSize": "112448",
"altText": "government-of-india",
"uploadedBy": "shashi@factly.in",
"publishedDate": "2019-09-28T13:15:21.348Z",
"lastUpdatedDate": "2019-09-28T13:15:21.348Z",
"clientId": "factly",
"createdDate": "2019-09-28T13:15:21.348Z",
"relativeURL": "/factly.png",
"sourceURL": "https://images.degacms.com/factly.png"
},
"id": "5d8f5c68f4f39f0001e419e9",
"class": "com.factly.dega.domain.Claimant",
"clientId": "factly",
"createdDate": "2019-09-28T13:13:00.000Z",
"lastUpdatedDate": "2019-09-28T13:15:28.083Z"
}
}