Skip to main content
Locations · Revision #2

Location Index Endpoint

Location Index Endpoint

Structure

See View Location Endpoint for the structure of the location payload inside the data array.

Example Request

GET /api/locations?per_page=2

Example Response

{
    "current_page": 1,
    "data": [
        //...
    ],
    "first_page_url": "http://aero.test/api/locations?page=1",
    "from": 1,
    "last_page": 3,
    "last_page_url": "http://aero.test/api/locations?page=3",
    "next_page_url": "http://aero.test/api/locations?page=2",
    "path": "http://aero.test/api/locations",
    "per_page": 2,
    "prev_page_url": null,
    "to": 2,
    "total": 5
}

See View Location Endpoint for the structure of the location payload inside the data array.