https://github.com/mwarkentin/ticketmaster
Ticketmaster is a flickr-style ticket server implemented with Flask and Redis
https://github.com/mwarkentin/ticketmaster
Last synced: 5 months ago
JSON representation
Ticketmaster is a flickr-style ticket server implemented with Flask and Redis
- Host: GitHub
- URL: https://github.com/mwarkentin/ticketmaster
- Owner: mwarkentin
- Created: 2012-08-27T23:47:18.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-08-28T12:48:02.000Z (almost 14 years ago)
- Last Synced: 2025-02-05T23:57:11.464Z (over 1 year ago)
- Size: 93.8 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
ticketmaster
============
Ticketmaster is a [flickr-style ticket server](http://code.flickr.com/blog/2010/02/08/ticket-servers-distributed-unique-primary-keys-on-the-cheap/) implemented with Flask and Redis.
Requirements
------------
* Redis
Usage
-----
### / GET
Returns a list of ticket tapes and their latest ticket id.
```
{
"ticket_tapes": [
{
"Tickets32": 4
},
{
"Tickets64": 16
}
]
}
```
### /:ticket_tape/ POST
Generates a new ticket for `:ticket_tape`.
```
>>> r = requests.post(url)
>>> r.json
{u'ticket_tape': u'Tickets64', u'id': 19}
>>> r = requests.post(url)
>>> r.json
{u'ticket_tape': u'Tickets64', u'id': 20}
```