In version V1, there are 4 resources which are:
User
: User informationDevices
: Gofime devicesSafezones
: Safezones of each deviceLocations
: Locations of each device
Routes | GET | POST | PUT | DELETE | PATCH |
---|---|---|---|---|---|
🔗 /v1/user | ✔️ | ||||
🔗 /v1/devices | ✔️ | ✔️ | |||
🔗 /v1/devices/{device_id} | ✔️ | ✔️ | ✔️ | ||
🔗 /v1/devices/{device_id}/locations | ✔️ | ||||
🔗 /v1/devices/{device_id}/safezones | ✔️ | ||||
🔗 /v1/devices/{device_id}/safezones/{safezone_id} | ✔️ | ✔️ | ✔️ |
Code | Name | Description |
---|---|---|
200 | OK | Success |
400 | BAD_REQUEST | Invalid parameters |
401 | UNAUTHORIZED | Client is unauthorized |
403 | FORBIDDEN | Client is blocked and forbidden in all services |
404 | NOT_FOUND | URL is not found |
405 | METHOD_NOT_ALLOWED | Method is not allowed |
408 | REQUEST_TIMEOUT | Request timeout |
409 | CONFLICT | Same type request is processed before |
429 | TOO_MANY_REQUEST | Too many request |
460 | TRANSACTION_FAILURE | Transaction failure Device is offline |
500 | INTERNAL_SERVER_ERROR | Internal server errors |
503 | SERVICE_UNAVAILABLE | Service is unavailable |
Response content type: application/json
Response format example:
{
"status": {
"code": 405,
"name": "METHOD_NOT_ALLOWED",
"message": "Method is not allowed",
"additional_message": ""
},
"doclink": "https://github.com/Chipstack/gofime-api-documents"
}
Below is default configured API Quota. The limit can be extended by your demand. Contact us for more information.
- 10 requests per minute
- 1600 requests per day