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

https://github.com/casey/edge

Directed graph building service
https://github.com/casey/edge

Last synced: 8 months ago
JSON representation

Directed graph building service

Awesome Lists containing this project

README

          

edge
====

Directed graph building service

[Test instance here.](http://rodarmor-edge.appspot.com)

API
---

A vertex name matches `/[a-zA-Z0-9._-]{1,64}/`.

* POST /A/B -> Increment the weight of the edge from vertex A to vertex B.
* GET /A/B -> Get weight of the edge from vertex A to vertex B. 0 if edge has never been incremented.

```
> curl -X POST 'http://rodarmor-edge.appspot.com/hello/world' --data ''
1
> curl -X POST 'http://rodarmor-edge.appspot.com/hello/world' --data ''
2
> curl -X POST 'http://rodarmor-edge.appspot.com/hello/world' --data ''
3
> curl -X GET 'http://rodarmor-edge.appspot.com/hello/world'
3
```