All endpoints are under the /api endpoint
GET /get/:id
returns the file associated with the id, optionally takes a file extension
GET /get/:alias@:tag
returns the file associated with the alias and tag, optionally takes a file extension
POST /addContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
name | string | The name of the script including extension |
content | string | The file content base64-encoded |
upload a script.
POST /alias/requestContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
alias | string | The name of the alias |
user | number | The id of the user creating the alias |
secret | string | The secret of the user creating the alias |
Create an alias
POST /alias/releaseContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
alias | string | The name of the alias to release with |
user | number | The id of the user creating the alias |
secret | string | The secret of the user creating the alias |
tag | string | The tag to release the alias with |
script | string | The id of the script to release |
Release an alias
POST /alias/listContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
user | number | The id of the user |
List all aliases belonging to a specific user
The following endpoints require admin privileges
POST /alias/requestsContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
user | number | The id of the admin user |
secret | string | The secret of the admin user |
Get a list of currently open alias requests
Content-Type: application/json
POST /alias/approveContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
user | number | The id of the admin user |
secret | string | The secret of the admin user |
alias | string | The name of the alias to approve |
owner | number | The id of the user that owns the alias |
Approve a pending alias
POST /alias/denyContent-Type: application/json
NAME | TYPE | DESCRIPTION |
---|
user | number | The id of the admin user |
secret | string | The secret of the admin user |
alias | string | The name of the alias to approve |
owner | number | The id of the user that owns the alias |
Deny a pending alias