List
GET
/tablesRequest
Query Params
search
string
optional
Nullable
includes[]
array[string]
optional
Nulable
Example:
["market","branch"]
filter[market_id]
string
optional
Nullable | Required if user role SUBSCRIBER
Example:
b5d70a92-5d2e-4f89-8e52-1827cfbd01f4
filter[branch_id]
string
optional
Nullable | Required if user role SUBSCRIBER member
Example:
6b14ac8c-8f23-4473-beb5-6777116363a1
page
integer
optional
Nullable
Example:
1
per_page
integer
optional
Nullable | Default: 20
Example:
20
Request samples
Responses
List | 200(200)
List | 422(422)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
meta
object
required
code
integer
required
status
string
required
message
string
required
data
object
required
current_page
integer
required
data
array [object {4}]
required
first_page_url
string
required
from
integer
required
last_page
integer
required
last_page_url
string
required
links
array [object {3}]
required
next_page_url
null
required
path
string
required
per_page
integer
required
prev_page_url
null
required
to
integer
required
total
integer
required
ExampleList | 200
{
"meta": {
"code": 200,
"status": "success",
"message": "Data Loaded Successfully"
},
"data": {
"current_page": 1,
"data": [
{
"id": 20,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "594029"
},
{
"id": 19,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "745684"
},
{
"id": 18,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "623140"
},
{
"id": 17,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "918880"
},
{
"id": 16,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "336138"
},
{
"id": 15,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "459322"
},
{
"id": 14,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "282544"
},
{
"id": 13,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "897991"
},
{
"id": 12,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "720582"
},
{
"id": 11,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "868932"
},
{
"id": 10,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "741268"
},
{
"id": 9,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "686682"
},
{
"id": 8,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "765509"
},
{
"id": 7,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "100771"
},
{
"id": 6,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "532777"
},
{
"id": 5,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "451748"
},
{
"id": 4,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "649507"
},
{
"id": 3,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "184436"
},
{
"id": 2,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "732582"
},
{
"id": 1,
"market_id": "30499025-43e2-4a77-bc29-13066288fc3f",
"branch_id": "8f9a2ea4-8e13-4c11-8626-c0408bbdc791",
"code": "548025"
}
],
"first_page_url": "http://localhost:8000/api/table?page=1",
"from": 1,
"last_page": 1,
"last_page_url": "http://localhost:8000/api/table?page=1",
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "http://localhost:8000/api/table?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"next_page_url": null,
"path": "http://localhost:8000/api/table",
"per_page": 20,
"prev_page_url": null,
"to": 20,
"total": 20
}
}
Last modified: a month ago