Oregon Trail Tombstone Generator as a Service (because why not?)
git clone https://github.com/jroyal/OTTGaaS.git
pip install -r requirements.txt
python server.py
Endpoint | Description |
---|---|
GET /tombstone/:tombstone_name | Display a tombstone |
POST /generate_tombstone | Create a new tombstone and return it |
POST /slack_generate_tombstone | Special route to handle a slack slash command to create and return a tombstone |
Retrieves the png tombstone file. If done in the browser it will actually display it.
curl localhost:5000/tombstone/oddball_aaron > test.png
open test.png
Creates and returns a new tombstone
curl -X POST http://localhost:5000/generate_tombstone -H "Content-Type: application/json" -d '{"name": "James Royal", "inscription": "Something cliche"}' > test.png
open test.png
A special api endpoint that will handle slack slash command requests. The keywords are name
and inscription
/ottgaas name James Royal inscription Something super cliche
Based on http://www.oregontrailtombstone.com/. Just wanted to get a little crazy with the *aaS.