diff --git a/lib/models/model.js b/lib/models/model.js index 7d52c3b4..bb59b129 100644 --- a/lib/models/model.js +++ b/lib/models/model.js @@ -100,8 +100,9 @@ Model.setup = function () { }; // Map the prototype method to /:id with data in the body + var idDesc = ModelCtor.modelName + ' id'; ModelCtor.sharedCtor.accepts = [ - {arg: 'id', type: 'any', http: {source: 'path'}} + {arg: 'id', type: 'any', http: {source: 'path'}, description: idDesc} // {arg: 'instance', type: 'object', http: {source: 'body'}} ];