Merge pull request #223 from strongloop/feature/improve-sharedctor-description
Describe the "id" parameter of model's sharedCtor
This commit is contained in:
commit
e8971fde41
|
@ -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'}}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue