1
0
Fork 0

Fix execution of these examples

This commit is contained in:
Willi Goesgens 2015-08-13 11:50:11 +02:00
parent beaa916ceb
commit adf6fd5321
1 changed files with 8 additions and 4 deletions

View File

@ -46,7 +46,8 @@ contain the error details embedded in a JSON object.
Valid query:
@EXAMPLE_ARANGOSH_RUN{RestQueryValid}
@startDocuBlockInline RestQueryValid
@EXAMPLE_ARANGOSH_RUN{RestQueryValid}
var url = "/_api/query";
var body = '{ "query" : "FOR p IN products FILTER p.name == @name LIMIT 2 RETURN p.n" }';
@ -55,11 +56,13 @@ Valid query:
assert(response.code === 200);
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock RestQueryValid
Invalid query:
@EXAMPLE_ARANGOSH_RUN{RestQueryInvalid}
@startDocuBlockInline RestQueryInValid
@EXAMPLE_ARANGOSH_RUN{RestQueryInvalid}
var url = "/_api/query";
var body = '{ "query" : "FOR p IN products FILTER p.name = @name LIMIT 2 RETURN p.n" }';
@ -68,7 +71,8 @@ Invalid query:
assert(response.code === 400);
logJsonResponse(response);
@END_EXAMPLE_ARANGOSH_RUN
@END_EXAMPLE_ARANGOSH_RUN
@endDocuBlock RestQueryInValid
!SUBSECTION Query tracking