Loading Problems

Endpoint: GET /api/20151105/problems/{identifier}

A single problem may be loaded with a GET request to the above endpoint. The JSON encoded data returned will conform to the problem schema. Additionally, the full problem history log will be included with the problem data.

Example:

curl:

curl -G \
    --header "Authorization: $SHIP_API_TOKEN" \
    https://api.realartists.com/api/20151105/problems/1

python:

api.problem(1)

Loading Problem Comments

Endpoint: GET /api/20151105/problems/{identifier}/comments

The user written comments on a problem may be loaded with a GET request to the above endpoint. An array of Comment objects will be returned, which are documented in the problem schema.

Example:

curl:

curl -G \
    --header "Authorization: $SHIP_API_TOKEN" \
    https://api.realartists.com/api/20151105/problems/1/comments

python:

api.problem_comments(1)

Loading Problem Relationships

Endpoint: GET /api/20151105/problems/{identifier}/relationships

The set of relationships for a given problem are not returned by the standard problems endpoint. Instead, they must be fetched explicitly from the relationships endpoint.

Example:

curl:

curl -G \
    --header "Authorization: $SHIP_API_TOKEN" \
    https://api.realartists.com/api/20151105/problems/1/relationships

python:

api.problem_relationships(1)

Loading Problem Watchers

Endpoint: GET /api/20151105/problems/{identifier}/watchers

The set of users watching a problem can be fetched with a GET to the above endpoint.

Example:

curl:

curl -G \
    --header "Authorization: $SHIP_API_TOKEN" \
    https://api.realartists.com/api/20151105/problems/1/watchers

python:

api.problem_watchers(1)