{ "swagger": "2.0", "info": { "contact": {} }, "paths": { "/users": { "get": { "description": "get all users", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "get all users", "responses": { "200": { "description": "OK", "schema": { "type": "string" } } } }, "post": { "description": "add a new user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "add a new user", "responses": { "201": { "description": "Created", "schema": { "type": "string" } } } } }, "/users/:userId": { "get": { "description": "get user by id", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "get user by id", "responses": { "200": { "description": "OK", "schema": { "type": "string" } } } }, "put": { "description": "update a user (put)", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "update a user", "responses": { "204": { "description": "No Content", "schema": { "type": "string" } } } }, "delete": { "description": "delete a user", "consumes": [ "application/json" ], "produces": [ "application/json" ], "tags": [ "users" ], "summary": "delete a user", "responses": { "204": { "description": "No Content", "schema": { "type": "string" } } } } } } }