listfield service - Watthakorn/EZ_finance GitHub Wiki
listfield-service
-
list-of-field api
GET /listfield
Request
{}
Response
[
{
"field_id": 1,
"field_name": "SamPaoSan Football",
"tel": "081-732-7343",
"price": "3,000 - 3,500",
"location": "98/1 M.13 Soi.Kubon Ramintra road ",
"email": "[email protected]",
"website": null,
"detail": "Test123",
"image": "path to image",
"stime": 9,
"etime": 24,
"username": "man"
},
{
"field_id": 2,
"field_name": "KaoSan Football",
"tel": "081-918-2677",
"price": "2,000 - 2,600",
"location": "Suansiam Soi 16 Bangkok 10320",
"email": "[email protected]",
"website": null,
"detail": null,
"image": "path to image",
"stime": 9,
"etime": 24,
"username": "man1"
},
{
"field_id": 3,
"field_name": "TungTraKai Football",
"tel": "02-513-3425",
"price": "1,200 - 1,300",
"location": "Soi Ladprao 18 Ladprao road Bangkok 10900",
"email": null,
"website": null,
"detail": null,
"image": "path to image",
"stime": 9,
"etime": 24,
"username": "man2"
}
]
-
field-detail api
GET /field?field_id={field_id}
Request
{
"field_id":1
}
Response
{
"field_id": 1,
"field_name": "SamPaoSan Football",
"tel": "081-732-7343",
"price": "3,000 - 3,500",
"location": "98/1 M.13 Soi.Kubon Ramintra road ",
"email": "[email protected]",
"website": null,
"detail": "Test123",
"image": "path to image",
"stime": 9,
"etime": 24,
"username": "man"
}
-
list-subfield api
GET /field/{field_id}
Request
{
"field_id":1
}
Response
[
{
"ex_id": 1,
"field_id": 1,
"fieldex_name": "test112",
"rent": 500,
"image": "img",
"size": "35x50 m",
"floor": "Natural grass"
},
{
"ex_id": 2,
"field_id": 1,
"fieldex_name": "test2",
"rent": 700,
"image": "img",
"size": "35x50 m",
"floor": "Natural grass"
},
{
"ex_id": 3,
"field_id": 1,
"fieldex_name": "test3",
"rent": 800,
"image": "img",
"size": "35x50 m",
"floor": "Natural grass"
},
{
"ex_id": 4,
"field_id": 1,
"fieldex_name": "test4",
"rent": 1000,
"image": "img",
"size": "105x75 m",
"floor": "Plastic grass"
},
{
"ex_id": 5,
"field_id": 1,
"fieldex_name": "test5",
"rent": 1500,
"image": "img",
"size": "105x75 m",
"floor": "Natural grass"
},
{
"ex_id": 17,
"field_id": 1,
"fieldex_name": "RE",
"rent": 111,
"image": "img",
"size": "100x200 m",
"floor": "Resin floor"
}
]
-
subfield-detail api
GET /field/{field_id}/{ex_id}
Request
{
"field_id":1
"ex_id":1
}
Response
{
"ex_id": 1,
"field_id": 1,
"fieldex_name": "test112",
"rent": 500,
"image": "img",
"size": "35x50 m",
"floor": "Natural grass"
}