Describe the "id" parameter of model's sharedCtor
Extend remoting metadata to describe the "id" parameter accepted by the sharedCtor of all models.
This commit is contained in:
parent
006aca6b9c
commit
4c246c7f2c
|
@ -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'}}
|
||||
];
|
||||
|
||||
|
|
Loading…
Reference in New Issue