This repository was archived by the owner on Mar 6, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
The Minefold API
minefold/tron
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
# Tron
Tron is the PartyCloud HTTP API.
NB. Redis connection pool size must be >= than the max number of threads
specified in the Procfile.
## Setup
$ createdb partycloud_development --encoding=utf-8
$ sequel --migrate-directory db/migrations \
postgres://localhost/partycloud_development
$ foreman run ruby db/seeds.rb
## Example Usage
# Get the list of servers
curl -i http://localhost:6000/servers -u $PC_API_KEY:
# Get the list of regions
curl -i http://localhost:6000/regions -u $PC_API_KEY:
# Get the list of funpacks
curl -i http://localhost:6000/funpacks -u $PC_API_KEY:
# Create a new server
curl -i http://localhost:6000/servers \
-u $PC_API_KEY \
-X POST \
-d name=minebnb \
-d region=71519ec0-1515-42b9-b2f6-a24c151a6247 \
-d funpack=9ed10c25-60ed-4375-8170-29f9365216a0
# Start a session of that server
curl -i http://localhost:6000/servers/{SERVER_ID}/session \
-u $PC_API_KEY \
-X POST \
-d '{ "name": "Woodbury", "access": { "blacklist": []}, "settings": {}}'
# Stop a session of that server
curl -i http://localhost:6000/servers/$SERVER/session \
-u $PC_API_KEY \
-X DELETE
About
The Minefold API
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published