API requests are made at - https://api.highranklinks.com/api/{endpoint}/{method}
where:
For requests that require authorization, in the http header, you must pass - Authorization: Bearer {token}
where:
Answer without data
{ "status": "success" }
Answer with data
{ "status": "success", "response": { ... } }
{ "status": "error", "response": { "code": {code}, "name": {name}, "message": {message}, "params": {params} } }
where:
VALIDATION_FAILURE - occurs when the input data is not validated. More
HTTP_METHOD_NOT_SUPPORTED - occurs if the request is not made by the http method that is expected
AUTHENTICATION_REQUIRED - occurs when you make a call to a method that requires authorization
ROUTE_NOT_FOUND - occurs when making a call to a non-existent route
SERVICE_UNAVAILABLE - occurs when technical work is carried out on the service