COLNEO Pro 1.0
Loading...
Searching...
No Matches
ApiJsonResponse

Description

API JSON Response is used as a return value for COLNEO pro API calls.

Since Qt provides a JSON object as type of QVariantMap this class just wraps a QVariantMap(Json) to this class so the return value of each method is properly typed.

A response object always provides these members:

{
'status' : <http response code>,
'data' : object / array / date / primitive datatype
'message : string (optional)
}

The status code is based on the HTTP status codes:

Status CodeMeaning
200Ok
201Created
202Accepted
204No content
206Partial content
400Bad request
401Unauthorized
403Forbidden
404Not found
405Method not allowed
409Conflict
422Unprocessable content
500Internal error
501Not implemented
503Service unavailable