Claims
Get claims
GET  /api/v1/claims
{
    "data" : [
        {
            "claim": "There was a shortfall in government earnings in 2018-19.",
            "description": "<p>Description</p>",
            "slug": "there-was-a-shortfall-in-government-earnings-in-2018-19",
            "rating": {
                "name": "True",
                "slug": "true",
                "description": "This is the description fo True rating",
                "media": {
                    "name": "https://storage.degacms.com/factly.png",
                    "type": "image/png",
                    "url": "https://storage.degacms.com/factly.png",
                    "title": "true",
                    "slug": "true",
                    "id": "5d792f14bf1bce0001eda499",
                    "class": "com.factly.dega.domain.Media",
                    "fileSize": "14323",
                    "altText": "true",
                    "uploadedBy": "shashi@factly.in",
                    "publishedDate": "2019-09-11T17:29:00.000Z",
                    "lastUpdatedDate": "2019-09-11T17:30:18.924Z",
                    "clientId": "factly",
                    "createdDate": "2019-09-11T17:29:00.000Z",
                    "relativeURL": "/factly.png",
                    "sourceURL": "https://images.degacms.com/factly.png"
                },
                "id": "5d791140e10bf00001fad893",
                "class": "com.factly.dega.domain.Rating",
                "numericValue": 5,
                "isDefault": true,
                "clientId": "default",
                "createdDate": "2019-09-11T15:22:00.000Z",
                "lastUpdatedDate": "2019-09-12T04:38:43.403Z"
            },
            "claimant": {
                "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"
            },
            "id": "5d8f5d53f4f39f0001e419ec",
            "class": "com.factly.dega.domain.Claim",
            "clientId": "factly",
            "claimDate": "2019-09-19T00:00:00.000Z",
            "claimSource": "https://twitter.com/INCIndia/status/1175386695757230080",
            "checkedDate": "2019-09-27T00:00:00.000Z",
            "reviewSources": "https://www.indiabudget.gov.in/economicsurvey/",
            "review": "<p>Review</p>",
            "reviewTagLine": "",
            "createdDate": "2019-09-28T13:17:07.009Z",
            "lastUpdatedDate": "2019-09-28T14:54:44.449Z"
        },
        {
            ...
        },
        ...
    ],
    "paging": {
        "next": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
        "hasNext": false,
        "previous": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
        "hasPrevious": false
    }
}
Query Parameters
| params | value | description | 
|---|---|---|
| rating | string | To get claims of a particular rating | 
| claimant | string | To get claims of a particular claimant | 
| limit | number | To limit number of claims | 
| next | string | To get next claims | 
| previous | string | To get previous claims | 
| sortBy | string | To sort by field | 
| sortAsc | boolean | To sort by ascending | 
Get claim
GET  /api/v1/claims/:key
Path parameters
| params | description | 
|---|---|
| key | To get claim by Object Id or slug | 
Get a claim by Object Id
GET  /api/v1/claims/$claimId
{
    "data" : {
        "claim": "There was a shortfall in government earnings in 2018-19.",
        "description": "<p>Description</p>",
        "slug": "there-was-a-shortfall-in-government-earnings-in-2018-19",
        "rating": {
            ...
        },
        "claimant": {
            ...
        },
        "id": "5d8f5d53f4f39f0001e419ec",
        "class": "com.factly.dega.domain.Claim",
        "clientId": "factly",
        "claimDate": "2019-09-19T00:00:00.000Z",
        "claimSource": "https://twitter.com/INCIndia/status/1175386695757230080",
        "checkedDate": "2019-09-27T00:00:00.000Z",
        "reviewSources": "https://www.indiabudget.gov.in/economicsurvey/",
        "review": "<p>Review</p>",
        "reviewTagLine": "",
        "createdDate": "2019-09-28T13:17:07.009Z",
        "lastUpdatedDate": "2019-09-28T14:54:44.449Z"
    }
}
Get a claim by slug
GET  /api/v1/claims/$claimSlug 
{
    "data" : {
        "claim": "There was a shortfall in government earnings in 2018-19.",
        "description": "<p>Description</p>",
        "slug": "there-was-a-shortfall-in-government-earnings-in-2018-19",
        "rating": {
            ...
        },
        "claimant": {
            ...
        },
        "id": "5d8f5d53f4f39f0001e419ec",
        "class": "com.factly.dega.domain.Claim",
        "clientId": "factly",
        "claimDate": "2019-09-19T00:00:00.000Z",
        "claimSource": "https://twitter.com/INCIndia/status/1175386695757230080",
        "checkedDate": "2019-09-27T00:00:00.000Z",
        "reviewSources": "https://www.indiabudget.gov.in/economicsurvey/",
        "review": "<p>Review</p>",
        "reviewTagLine": "",
        "createdDate": "2019-09-28T13:17:07.009Z",
        "lastUpdatedDate": "2019-09-28T14:54:44.449Z"
    }
}