Retrieve all seat plans with a GET request:
GET /seat-plans
| Parameter | Type | Description | Example |
|---|---|---|---|
page |
Integer | Number of page (min: 1) | 1 |
per_page |
Integer | Number of items per page (max: 1000) | 10 |
search |
String | Seat Plane name to search | Example District |
{
"status": "success",
"message": "Seat plans retrieved successfully",
"data" : [
"current_page": 1,
"data": [
{
"id": 1,
"name": "Bus A",
"floor": 1,
"created_at": "2025-07-08T10:00:00",
"updated_at": "2025-07-08T10:00:00",
"floor_data" : [
{
"id": 1,
"seat_plan_id": 1,
"name": "Lower",
"layout_type": "2-2",
"rows": 4,
"cols": 10,
"step": 2,
"is_extra_seat": 1,
"created_by": 1,
"updated_by": null,
"created_at": "2025-09-03T14:40:26.000000Z",
"updated_at": "2025-09-03T14:40:26.000000Z"
}
]
}
],
"first_page_url": "http://127.0.0.1:8000/api/seat-planes?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://127.0.0.1:8000/api/seat-planes?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://127.0.0.1:8000/api/seat-planes?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://127.0.0.1:8000/api/seat-planes",
"per_page": 10,
"prev_page_url": null,
"to": 1,
"total": 1
]
}