1
0
Fork 0

We now return 202 in org/arangodb/actions/echoRequest

This commit is contained in:
Wilfried Goesgens 2015-09-25 17:00:54 +02:00
parent 80be8d96ae
commit c3d587a239
2 changed files with 5 additions and 3 deletions

View File

@ -1,5 +1,7 @@
v2.7.0 (XXXX-XX-XX)
-------------------
* POSTing to org/arangodb/actions/echoRequest now returns 202
* loading modules from collections syntax changed from /db:/module to /db://module
* allow Foxx apps to be installed underneath URL path `/_open/`, so they can be

View File

@ -72,7 +72,7 @@ To start, we'll define a simple action handler in a module */ownTest*:
@startDocuBlockInline MOD_01a_routingCreateOwnTest
@EXAMPLE_ARANGOSH_OUTPUT{MOD_01a_routingCreateOwnTest}
|db._modules.save({
| path: "/db:/ownTest",
| path: "/db://ownTest",
| content:
| "exports.do = function(req, res, options, next) {"+
| " res.body = 'test';" +
@ -90,7 +90,7 @@ the action to the route */ourtest*, execute the following command:
@startDocuBlockInline MOD_01b_routingEnableOwnTest
@EXAMPLE_ARANGOSH_OUTPUT{MOD_01b_routingEnableOwnTest}
|db._routing.save({
| url: "/ourtest",
| url: "/ourtest",
| action: {
| controller: "db://ownTest"
| }
@ -342,7 +342,7 @@ Then we send some curl requests to these sample routes:
"/subdirectory/ourtest/3"];
for (var i = 0; i < 3; i++) {
var response = logCurlRequest('GET', url[i]);
assert(response.code === 200);
assert(response.code === 202);
logJsonResponse(response);
}
db._query("FOR route IN _routing FILTER route.middleware[0].url.match == '/subdirectory/*' REMOVE route in _routing");