List Geofences
Get All Geofence Data
Responses
- 200
- 400
- 401
Success
application/json
Schema
Example (from schema)
Example
Schema
- Array [
- ]
message string required
data object[]
geofenceId number required
companyId number required
polyData string required
circData string required
address string required
addressDetail string required
province string required
city string required
postalCode number required
category string required
contactName string required
phoneNo string required
isGarage boolean required
isServiceLoc boolean required
serviceLocType string required
hasRelation boolean required
{
"message": "string",
"data": [
{
"geofenceId": 0,
"companyId": 0,
"polyData": "string",
"circData": "string",
"address": "string",
"addressDetail": "string",
"province": "string",
"city": "string",
"postalCode": 0,
"category": "string",
"contactName": "string",
"phoneNo": "string",
"isGarage": true,
"isServiceLoc": true,
"serviceLocType": "string",
"hasRelation": true
}
]
}
{
"message": "Success",
"data": [
{
"geofenceId": 1234,
"companyId": 2,
"fenceName": "Nama Geofence",
"type": "C",
"polyData": null,
"circData": "<(-10.00,123.000),100>",
"address": "Jalan Tugu Pahlawan",
"addressDetail": "",
"province": "Jawa Timur",
"city": "Surabaya",
"postalCode": null,
"category": "Kantor Pusat",
"contactName": null,
"phoneNo": null,
"isGarage": true,
"isServiceLoc": false,
"serviceLocType": "",
"hasRelation": false
}
]
}
Bad Request
application/json
Schema
Example (from schema)
Expired Token
Bad Token
Schema
code string
message string
detail string
{
"code": "string",
"message": "string",
"detail": "string"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt expired"
}
{
"code": "E-V1/1-03",
"message": "An error occurred while executing query",
"detail": "Context creation failed: jwt malformed"
}
Unauthorized Request
application/json
Schema
Example (from schema)
Example
Schema
code string
message string
{
"code": "string",
"message": "string"
}
{
"code": "E-G1/1-01",
"message": "Authentication token is required"
}
Loading...