1
0
Fork 0

changed wrong http response code

This commit is contained in:
a-brandt 2013-02-12 13:26:54 +01:00
parent 01729482ad
commit bcf6842fbb
3 changed files with 6 additions and 6 deletions

View File

@ -1,7 +1,7 @@
> curl --data @- -X POST --dump - http://localhost:8529/_api/graph/graph1/edge
{"_key" : "edge1", "_from" : "vert2", "_to" : "vert1", "optional1" : "val1"}
HTTP/1.1 200 OK
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
@ -15,5 +15,5 @@ content-type: application/json; charset=utf-8
"optional1": "val1"
},
"error": false,
"code": 200
"code": 201
}

View File

@ -1,7 +1,7 @@
> curl --data @- -X POST --dump - http://localhost:8529/_api/graph
{"_key" : "graph1", "vertices" : "v", "edges" : "e"}
HTTP/1.1 200 OK
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
@ -13,5 +13,5 @@ content-type: application/json; charset=utf-8
"edges": "e"
},
"error": false,
"code": 200
"code": 201
}

View File

@ -1,7 +1,7 @@
> curl --data @- -X POST --dump - http://localhost:8529/_api/graph/graph1/vertex
{"_key" : "v1", "optional1" : "val1", "optional2" : "val2"}
HTTP/1.1 200 OK
HTTP/1.1 201 Created
content-type: application/json; charset=utf-8
{
@ -13,5 +13,5 @@ content-type: application/json; charset=utf-8
"optional2": "val2"
},
"error": false,
"code": 200
"code": 201
}