Categories

Manage all categories on the application

Get all categories

GET https://wemx.app/api/v1/categories

Returns all categories made on your application

{
    "status": true,
    "current_page": 1,
    "data": [
        {
            "id": 2,
            "status": "active",
            "name": "Web",
            "link": "web",
            "icon": "web.png",
            "order": 0,
            "description": "View all plans for web packages",
            "created_at": "2023-09-26T21:33:53.000000Z",
            "updated_at": "2023-12-07T19:26:58.000000Z"
        }
        // more results
    ],
    "first_page_url": "http://wemx.app/api/v1/categories?page=1",
    "from": 1,
    "last_page": 1,
    "last_page_url": "http://wemx.app/api/v1/categories?page=1",
    "links": [
        {
            "url": null,
            "label": "Previous",
            "active": false
        },
        {
            "url": "http://wemx.app/api/v1/categories?page=1",
            "label": "1",
            "active": true
        },
        {
            "url": null,
            "label": "Next",
            "active": false
        }
    ],
    "next_page_url": null,
    "path": "http://wemx.app/api/v1/categories",
    "per_page": 15,
    "prev_page_url": null,
    "to": 2,
    "total": 2
}

Available Relationships (optional)

https://wemx.app/api/v1/categories?include=packages

Available relationships:

packages

Filters (optional)

https://wemx.app/api/v1/categories?filter[status]=active

Available Filters:

id, status, name, description, link, icon

Sorting (optional)

https://wemx.app/api/v1/categories?sort[order]=asc

Available Sorting Parameters:

id, status, name, order, created_at

Sorting operators

asc, desc, random

Dates (optional)

https://wemx.app/api/v1/categories?date=30days

Last updated