Project for fun.
config/services/graph/config.yml
- POST /nodes request body:
{
"nodes": [
{
"id": "3",
"parent": "1"
}
]
}
- GET /nodes response:
[
"3",
"1"
]
- GET /nodes/{node_id}/trees request /nodes/3/trees
{
"trees": [
[
"1",
"3"
]
]
}
python service.py graph
Default configuration binds to 127.0.0.1:8080
rake dev:test
rake dev:lint