ScoreShots API Documentation

General

The ScoreShots API allows you powerful interfacing with our data, using MySQL-like parameters & concepts. You can do CRUD operations, as well application-specific operations native to services such as S3. CRUD operations are batched, meaning you can send multiple requests with one API call. All requests return a JSON object

General Endpoint Structure

https://api.scoreshots.com/v1/TABLE/ACTION/DATA_MODE/

General Data Specifications

To perform any requests to the API, a POST key of 'body' must be supplied each time. The body is generally an array, containing the children of the batched requests. Here are the parameters for each type of CRUD requests that the children of the body can accept.

Parameters applicable to all general ACTION

/retrieve/

/update/

/create/

/delete/

/describe-schema/

Shows all tables in the Database

Returns

On success, success is true, batched is true, and objects is an array of the batched objects. Each item in objects returns a boolean success, a key (which was set with the __key body parameter); if success is true, then a data array is returned, if not an error message is returned. If a message is returned, this usually indicates a MySQL error.

Application-specific endpoints

S3

/S3/create-access-token/ - Create access token for S3 firewall

Body parameters

Note: the body is not batched, so an array is not accepted.

Returns: *.token

/S3/put-object/ - Uploads new file to S3

Body parameters

Note: the body is not batched, so an array is not accepted.

Returns: *.s3_response

/S3/delete-object/ - Delete file in S3

Body parameters

Note: the body is not batched, so an array is not accepted.

Returns: *.s3_response