File tree 3 files changed +29
-3
lines changed
3 files changed +29
-3
lines changed Original file line number Diff line number Diff line change @@ -110,6 +110,31 @@ Changes on a graph are not committed until the put_graph method is called.
110
110
111
111
### Use from Console:
112
112
113
+ $ curl http://localhost:4567/
114
+ {
115
+ "version": "0.1.0",
116
+ "supportedPaths": {
117
+ "GET": [
118
+ "/graphs",
119
+ "/graphs/[graph]",
120
+ "/graphs/[graph]/vertices",
121
+ "/graphs/[graph]/vertices?key=[key]&value=[value]",
122
+ "/graphs/[graph]/vertices/[vertex]",
123
+ "/graphs/[graph]/vertices/[vertex]/out",
124
+ ...
125
+ ],
126
+ "POST": [
127
+ ...
128
+ ],
129
+ "PUT": [
130
+ ...
131
+ ],
132
+ "DELETE": [
133
+ ...
134
+ ]
135
+ }
136
+ }
137
+
113
138
$ curl http://localhost:4567/graphs
114
139
{
115
140
"version": "0.1.0",
@@ -118,6 +143,7 @@ Changes on a graph are not committed until the put_graph method is called.
118
143
"tinkergraph"
119
144
]
120
145
}
146
+
121
147
$ curl http://localhost:4567/graphs/tinkergraph/vertices/1
122
148
{
123
149
"version": "0.1.0",
Original file line number Diff line number Diff line change 1
1
module RedGrape
2
- VERSION = '0.1.0 '
2
+ VERSION = '0.1.1 '
3
3
end
4
4
5
5
require 'ext/nil_class_ext'
Original file line number Diff line number Diff line change 148
148
params [ kv [ 0 ] ] = kv [ 1 ] ;
149
149
}
150
150
$ . post (
151
- '/graphs/' + 'tinkergraph' + '/vertices/' + id ,
151
+ '/graphs/' + graphId + '/vertices/' + id ,
152
152
params ,
153
153
function ( data ) {
154
154
window . location . reload ( ) ; // TODO
175
175
params [ kv [ 0 ] ] = kv [ 1 ] ;
176
176
}
177
177
$ . post (
178
- '/graphs/' + 'tinkergraph' + '/edges/' + id ,
178
+ '/graphs/' + graphId + '/edges/' + id ,
179
179
params ,
180
180
function ( data ) {
181
181
window . location . reload ( ) ; // TODO
You can’t perform that action at this time.
0 commit comments