From 30ec32124bef0c5e06c7b7b87a3e0342acea2652 Mon Sep 17 00:00:00 2001 From: Jacob Evans Date: Fri, 11 Apr 2014 14:31:24 +1000 Subject: [PATCH] Fix API reference. Added the required Group ID (gid) for /groups/{gid}/chat for the API reference documentation --- src/routes/apiv2.coffee | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/routes/apiv2.coffee b/src/routes/apiv2.coffee index 9cf7dd3190..f78d8c5707 100644 --- a/src/routes/apiv2.coffee +++ b/src/routes/apiv2.coffee @@ -455,6 +455,7 @@ module.exports = (swagger, v2) -> spec: path: "/groups/{gid}/chat" description: "Get all chat messages" + parameters: [path('gid','Group to return the chat from ','string')] middleware: [auth.auth, groups.attachGroup] action: groups.getChat @@ -665,4 +666,4 @@ module.exports = (swagger, v2) -> swagger["add#{route.spec.method}"](route);true - swagger.configure("#{nconf.get('BASE_URL')}/api/v2", "2") \ No newline at end of file + swagger.configure("#{nconf.get('BASE_URL')}/api/v2", "2")