Skip to content
This repository has been archived by the owner on Feb 17, 2019. It is now read-only.
Kristian Videmark Parkov edited this page Jun 21, 2017 · 3 revisions

Endpoints

Base response format

All endpoints wrap responses in a standard format:

{
    success: Boolean,
    code: Number,
    result: Object | Array | null | undefined,  // will be defined if success === true
    error: Object | String | undefined          // will be defined if success === false
}

Success

Success result is not required, but the definition of the key result in the response object is, if success === true. Results should be either an object, an array or null (thereby conforming to JSON in itself).

Clone this wiki locally