{ "swagger": "2.0", "info": { "version": "0.0.1", "title": "HelloWorld" }, "paths": { "/CheckConnection/{sCode}": { "get": { "summary": "CheckConnection", "operationId": "CheckConnection", "produces": [ "application/json" ], "parameters": [ { "in": "path", "name": "sCode", "required": true, "type": "string" } ], "responses": { "200": { "description": "Successful", "schema": { "$ref": "#/definitions/ConnectionResult" }, "headers": { "Access-Control-Allow-Origin": { "type": "string" } } } } } }, "/HelloWorld/{sCode}": { "post": { "summary": "HelloWorld", "operationId": "HelloWorld", "produces": [ "application/json" ], "consumes": [ "application/json" ], "parameters": [ { "in": "path", "name": "sCode", "required": true, "type": "string" }, { "in": "body", "name": "body", "description": "All the body", "schema": { "$ref": "#/definitions/HelloWorld" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Greeting" } } } } }, "/MakeList/{sCode}": { "post": { "summary": "MakeList", "operationId": "MakeList", "produces": [ "application/json" ], "consumes": [ "application/json" ], "parameters": [ { "in": "path", "name": "sCode", "required": true, "type": "string" }, { "in": "body", "name": "body", "description": "All the body", "schema": { "$ref": "#/definitions/MakeListFrom" } } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/MakeList" } } } } } }, "definitions": { "ConnectionResult": { "type": "object", "properties": { "iS": { "type": "integer" }, "dT": { "type": "string" }, "sC": { "type": "string" } } }, "Greeting": { "type": "object", "properties": { "Message": { "type": "string" }, "sCode": { "type": "string" } } }, "HelloWorld": { "type": "object", "properties": { "sName": { "type": "string" }, "sSurname": { "type": "string" }, "sCode": { "type": "string" } } }, "MakeListFrom": { "type": "object", "properties": { "Item1": { "type": "string" }, "Item2": { "type": "string" }, "sCode": { "type": "string" } } }, "MakeList": { "type": "object", "properties": { "lList": { "type": "array", "items": { "$ref": "#/definitions/ListItem" } }, "iCount": { "type": "integer" }, "sCode": { "type": "string" } } }, "ListItem": { "type": "object", "properties": { "sName": { "type": "string" }, "sValue": { "type": "string" } } } } }