1
0
Fork 0

Ported legacy Foxx syntax to 2.4+.

This commit is contained in:
Alan Plum 2015-01-06 20:32:46 +01:00
parent 7aee5e56bd
commit 2b569e5db2
2 changed files with 9 additions and 4 deletions

View File

@ -278,8 +278,7 @@
setGraphResponse(res, g, actions.HTTP_CREATED);
})
.queryParam("waitForSync", {
type: "boolean",
description: "define if the request should wait until synced to disk."
type: waitForSyncFlag
})
.errorResponse(
ArangoError, actions.HTTP_CONFLICT, "Graph creation error.", function(e) {

View File

@ -1758,7 +1758,10 @@ function FoxxControllerWithRootElement () {
app.get('/foxx', function (providedReq) {
called = (providedReq.parameters[paramName] instanceof ModelPrototype);
}).bodyParam(paramName, description, ModelPrototype);
}).bodyParam(paramName, {
description: description,
type: ModelPrototype
});
routes[0].action.callback(req, res);
@ -1786,7 +1789,10 @@ function FoxxControllerWithRootElement () {
app.get('/foxx', function (providedReq) {
called = (providedReq.parameters[paramName][0] instanceof ModelPrototype);
}).bodyParam(paramName, description, [ModelPrototype]);
}).bodyParam(paramName, {
description: description,
type: [ModelPrototype]
});
routes[0].action.callback(req, res);