An open API service indexing awesome lists of open source software.

https://github.com/casey/number

Numbering service
https://github.com/casey/number

Last synced: 8 months ago
JSON representation

Numbering service

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.