{ "openapi": "3.0.0", "info": { "version": "1.0.0", "title": "Swagger Report" }, "servers": [ { "url": "http://127.0.0.1:56150" }, { "url": "http://127.0.0.1:56152" }, { "url": "http://127.0.0.1:56154" } ], "paths": { "/users/:id": { "get": { "tags": [ "Users" ], "description": "Positive: show user profile", "parameters": [], "responses": { "200": { "description": "Positive: show user profile", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 1, "minimum": 0, "maximum": 1 }, "name": { "type": "string", "example": "Leigh" }, "email": { "type": "string", "example": "helvy0@feedburner.com" } }, "example": { "id": 1, "name": "Leigh", "email": "helvy0@feedburner.com" } } } } } } }, "patch": { "tags": [ "Users" ], "description": "Positive: change user name", "parameters": [ { "name": "AUTH", "in": "header", "schema": { "type": "string" }, "example": "5NM2p40Z8" } ], "requestBody": { "content": { "application/json": { "schema": { "type": "object", "properties": { "name": { "type": "string", "example": "McCoy" } }, "example": { "name": "McCoy" } } } } }, "responses": { "200": { "description": "Positive: change user name", "content": { "application/json": { "schema": { "type": "object", "properties": { "id": { "type": "number", "example": 2 }, "name": { "type": "string", "example": "McCoy" }, "email": { "type": "string", "example": "pancell1@gravatar.com" } }, "example": { "id": 2, "name": "McCoy", "email": "pancell1@gravatar.com" } } } } } } } }, "/messages": { "get": { "tags": [ "Messages" ], "description": "Positive: get list of messages", "parameters": [ { "name": "AUTH", "in": "header", "schema": { "type": "string" }, "example": "5NM2p40Z8" } ], "responses": { "200": { "description": "Positive: get list of messages", "content": { "application/json": { "schema": { "type": "array", "items": { "type": "object", "properties": { "text": { "type": "string", "example": "butter property president flow nodded degree where keep" }, "sender": { "type": "number", "example": 2 } }, "example": { "text": "butter property president flow nodded degree where keep", "sender": 2 } }, "example": [ { "text": "butter property president flow nodded degree where keep", "sender": 2 } ] } } } } } } } } }