Description
e.g.
class Person(Node):
... element_type = "person"
... name = String(nullable=False)
...
class Knows(Relationship):
... lable = "knows"
...
class Knows(Relationship):
... label = "knows"
... created = DateTime(default=current_timestamp, nullable=False)
...
g.add_proxy("person", Person)
g.add_proxy("knows", Knows)james = g.person.create(name="James")
POST url: http://10.0.3.139:8182/graphs/emptygraph/vertices
POST body: {"element_type": "person", "name": "James"}
julie = g.person.create(name="Julie")
POST url: http://10.0.3.139:8182/graphs/emptygraph/vertices
POST body: {"element_type": "person", "name": "Julie"}
g.knows.create(james, julie)
POST url: http://10.0.3.139:8182/graphs/emptygraph/edges
POST body: {"_label": "knows", "created": 1403798951, "_outV": 15, "_inV": 16}
<Knows: http://10.0.3.139:8182/graphs/emptygraph/edges/17>
All good, but now:
g.knows.get_all()
GET url: http://10.0.3.139:8182/graphs/emptygraph/vertices?value=knows&key=label
GET body: None
Hmm, shouldn't the URI should be a request on edges not vertices?
What about?
g.knows.index.lookup(created=1403798951)
GET url: http://10.0.3.139:8182/graphs/emptygraph/vertices?value=1403798951&key=created
GET body: None
Again, same thing.