mirror of https://gitee.com/bigwinds/arangodb
Ported legacy Foxx syntax to 2.4+.
This commit is contained in:
parent
7aee5e56bd
commit
2b569e5db2
|
@ -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) {
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue