https://github.com/casey/number
Numbering service
https://github.com/casey/number
Last synced: 8 months ago
JSON representation
Numbering service
- Host: GitHub
- URL: https://github.com/casey/number
- Owner: casey
- License: other
- Created: 2014-09-17T13:19:35.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-03T05:31:32.000Z (over 11 years ago)
- Last Synced: 2025-02-14T01:18:25.572Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 191 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
number
======
Numbering service
[Test instance here.](http://rodarmor-number.appspot.com)
API
---
A NAME matches `/[a-zA-Z._-][a-zA-Z0-9._-]*/`.
A NUMBER matches `/[0-9]+/`.
* PUT /NAME -> Allocate number for NAME. Numbers are allocated in sequenceish starting at 0.
* GET /NAME -> Get number for NAME.
* GET /NUMBER -> Get name for NUMBER.
```
> curl -X PUT http://rodarmor-number.appspot.com/sockbaby --data ''
20
> curl -X PUT http://rodarmor-number.appspot.com/ronny --data ''
21
```
To Do
-----
* Some kind of self-healing for filling in holes.