diff --git a/example/routes.js b/example/routes.js index 6ae53638..21c0c060 100644 --- a/example/routes.js +++ b/example/routes.js @@ -18,38 +18,38 @@ module.exports.setup = function(app) { /** - * @swagger - * /: - * get: - * description: Returns Hello World! - * responses: - * 200: - * description: hello world + * @swagger + * /: + * get: + * description: Returns the homepage + * responses: + * 200: + * description: hello world */ app.get('/', rootHandler); /** - * @swagger - * /login: - * post: - * description: Login to the application - * produces: - * - application/json - * parameters: - * - name: username - * description: Username to use for login. - * in: formData - * required: true - * type: string - * - name: password - * description: User's password. - * in: formData - * required: true - * type: string - * responses: - * 200: - * description: login + * @swagger + * /login: + * post: + * description: Login to the application + * produces: + * - application/json + * parameters: + * - name: username + * description: Username to use for login. + * in: formData + * required: true + * type: string + * - name: password + * description: User's password. + * in: formData + * required: true + * type: string + * responses: + * 200: + * description: login */ app.post('/login', loginHandler); }; \ No newline at end of file diff --git a/test/swagger-spec.json b/test/swagger-spec.json index 168f6160..a5da81f6 100644 --- a/test/swagger-spec.json +++ b/test/swagger-spec.json @@ -10,7 +10,7 @@ "paths": { "/": { "get": { - "description": "Returns Hello World!", + "description": "Returns the homepage", "responses": { "200": { "description": "hello world"