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
- Host: GitHub
- URL: https://github.com/casey/edge
- Owner: casey
- License: other
- Created: 2014-09-17T13:43:40.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-10-03T05:26:03.000Z (over 11 years ago)
- Last Synced: 2025-02-14T01:18:27.589Z (over 1 year ago)
- Language: Go
- Homepage:
- Size: 176 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
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
```