mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-26 14:15:57 +08:00
Updated test example with real parameters
This commit is contained in:
@@ -34,7 +34,14 @@ class Server {
|
||||
}
|
||||
console.dir(instance.name);
|
||||
});
|
||||
model.remoteMethod('fakeReturn', {});
|
||||
model.remoteMethod('getStuff', {
|
||||
description: "Get some stuff",
|
||||
accepts: [
|
||||
{arg: 'aParam', type: "String", required: true, description: "A parameter to process"}
|
||||
],
|
||||
http: {verb: "get", path: "/get-stuff"},
|
||||
returns: {arg: "res", type: "Object"},
|
||||
});
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user