# Submission

# Get All Submissions

# Resource URL

https://humtog.com/api/admin/submissions

# Resource Method

GET

# Example Response

{
    "data": [
        {
            "id": 23,
            "slug": "asdawdaw",
            "channel_id": 1,
            "channel_name": "General",
            "channel_title": "General",
            "location": {
                "id": 1,
                "code": "GL",
                "name": "Global",
                "avatar": null,
                "thumbnail": null,
                "description": null,
                "status": 0,
                "tagline": "",
                "slug": "global",
                "cover": ""
            },
            ...
        },
        ...
    ],
    "links": {
        "first": "https://humtog.com/api/admin/submissions?page=1",
        "last": null,
        "prev": null,
        "next": null
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "path": "https://humtog.com/api/admin/submissions",
        "per_page": 90,
        "to": 4
    }
}

# Get Reported Submissions

# Resource URL

https://humtog.com/api/admin/reports/submissions

# Resource Method

GET

# Params

Name Required Type Description
type Yes string List solved or unsolved

# Example Response

{
    "current_page": 1,
    "data": [
        {
            "id": 2,
            "channel_id": 1,
            "reportable_id": 1,
            "reportable_type": "App\\Submission",
            ...
        },
        ...
    ],
    "first_page_url": "https://humtog.com/api/admin/reports/submissions?page=1",
    "from": 1,
    "next_page_url": null,
    "path": "https://humtog.com/api/admin/reports/submissions",
    "per_page": 50,
    "prev_page_url": null,
    "to": 1
}