Merge pull request #223 from strongloop/feature/improve-sharedctor-description

Describe the "id" parameter of model's sharedCtor
This commit is contained in:
Miroslav Bajtoš 2014-04-04 07:36:03 -07:00
commit e8971fde41
1 changed files with 2 additions and 1 deletions

View File

@ -100,8 +100,9 @@ Model.setup = function () {
}; };
// Map the prototype method to /:id with data in the body // Map the prototype method to /:id with data in the body
var idDesc = ModelCtor.modelName + ' id';
ModelCtor.sharedCtor.accepts = [ 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'}} // {arg: 'instance', type: 'object', http: {source: 'body'}}
]; ];