{ "swagger": "2.0", "info": { "description": "Api Documentation", "version": "1.0", "title": "Api Documentation", "termsOfService": "urn:tos", "contact": {}, "license": { "name": "Apache 2.0", "url": "http://www.apache.org/licenses/LICENSE-2.0" } }, "host": "localhost:8080", "basePath": "/", "tags": [ { "name": "basic-error-controller", "description": "Basic Error Controller" }, { "name": "client-rest-controller", "description": "Client Rest Controller" }, { "name": "incident-rest-controller", "description": "Incident Rest Controller" }, { "name": "order-rest-controller", "description": "Order Rest Controller" }, { "name": "service-request-rest-controller", "description": "Service Request Rest Controller" } ], "paths": { "/CreateNewClient": { "get": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "client-rest-controller" ], "summary": "CreateNewClient", "operationId": "CreateNewClientUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "email", "in": "query", "description": "email", "required": true, "type": "string" }, { "name": "firmname", "in": "query", "description": "firmname", "required": true, "type": "string" }, { "name": "inn", "in": "query", "description": "inn", "required": true, "type": "integer", "format": "int32" }, { "name": "middlename", "in": "query", "description": "middlename", "required": true, "type": "string" }, { "name": "name", "in": "query", "description": "name", "required": true, "type": "string" }, { "name": "phonenumber", "in": "query", "description": "phonenumber", "required": true, "type": "string" }, { "name": "surname", "in": "query", "description": "surname", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Client" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/CreateNewOrder": { "get": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "order-rest-controller" ], "summary": "CreateNewOrder", "operationId": "CreateNewOrderUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "code", "in": "query", "description": "code", "required": true, "type": "string" }, { "name": "cost", "in": "query", "description": "cost", "required": true, "type": "string" }, { "name": "date", "in": "query", "description": "date", "required": true, "type": "string" }, { "name": "narrative", "in": "query", "description": "narrative", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/Order" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/GetClientList": { "get": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingGET", "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingDELETE", "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "client-rest-controller" ], "summary": "GetClientList", "operationId": "GetClientListUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Client" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/GetIncListByUser": { "get": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "incident-rest-controller" ], "summary": "GetIncListByUser", "operationId": "GetIncListByUserUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Incident" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/GetOrderList": { "get": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingGET", "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingDELETE", "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "order-rest-controller" ], "summary": "GetOrderList", "operationId": "GetOrderListUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/Order" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/GetSRListByUser": { "get": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "service-request-rest-controller" ], "summary": "GetSRListByUser", "operationId": "GetSRListByUserUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "userID", "in": "query", "description": "userID", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK", "schema": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/SetIncStatus": { "get": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "incident-rest-controller" ], "summary": "SetIncStatus", "operationId": "SetIncStatusUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "incID", "in": "query", "description": "incID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/SetSRStatus": { "get": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingGET", "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingHEAD", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingPOST", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingPUT", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingDELETE", "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "service-request-rest-controller" ], "summary": "SetSRStatus", "operationId": "SetSRStatusUsingPATCH", "consumes": [ "application/json" ], "produces": [ "*/*" ], "parameters": [ { "name": "srID", "in": "query", "description": "srID", "required": true, "type": "string" }, { "name": "status", "in": "query", "description": "status", "required": true, "type": "string" } ], "responses": { "200": { "description": "OK" }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } }, "/error": { "get": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingGET", "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "head": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingHEAD", "consumes": [ "application/json" ], "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "post": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingPOST", "consumes": [ "application/json" ], "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "put": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingPUT", "consumes": [ "application/json" ], "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "201": { "description": "Created" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" }, "404": { "description": "Not Found" } } }, "delete": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingDELETE", "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "options": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingOPTIONS", "consumes": [ "application/json" ], "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } }, "patch": { "tags": [ "basic-error-controller" ], "summary": "errorHtml", "operationId": "errorHtmlUsingPATCH", "consumes": [ "application/json" ], "produces": [ "text/html" ], "responses": { "200": { "description": "OK", "schema": { "$ref": "#/definitions/ModelAndView" } }, "204": { "description": "No Content" }, "401": { "description": "Unauthorized" }, "403": { "description": "Forbidden" } } } } }, "definitions": { "Client": { "type": "object", "properties": { "email": { "type": "string" }, "firmname": { "type": "string" }, "inn": { "type": "integer", "format": "int32" }, "middlename": { "type": "string" }, "name": { "type": "string" }, "order": { "$ref": "#/definitions/Order" }, "phonenumber": { "type": "string" }, "surname": { "type": "string" } }, "title": "Client" }, "Incident": { "type": "object", "properties": { "businessprocess": { "type": "string" }, "incidenttime": { "type": "string", "format": "date-time" }, "service": { "$ref": "#/definitions/Service" }, "stList": { "type": "array", "items": { "$ref": "#/definitions/Status" } }, "userid": { "type": "integer", "format": "int32" } }, "title": "Incident" }, "ModelAndView": { "type": "object", "properties": { "empty": { "type": "boolean" }, "model": { "type": "object" }, "modelMap": { "type": "object", "additionalProperties": { "type": "object" } }, "reference": { "type": "boolean" }, "status": { "type": "string", "enum": [ "ACCEPTED", "ALREADY_REPORTED", "BAD_GATEWAY", "BAD_REQUEST", "BANDWIDTH_LIMIT_EXCEEDED", "CHECKPOINT", "CONFLICT", "CONTINUE", "CREATED", "DESTINATION_LOCKED", "EXPECTATION_FAILED", "FAILED_DEPENDENCY", "FORBIDDEN", "FOUND", "GATEWAY_TIMEOUT", "GONE", "HTTP_VERSION_NOT_SUPPORTED", "IM_USED", "INSUFFICIENT_SPACE_ON_RESOURCE", "INSUFFICIENT_STORAGE", "INTERNAL_SERVER_ERROR", "I_AM_A_TEAPOT", "LENGTH_REQUIRED", "LOCKED", "LOOP_DETECTED", "METHOD_FAILURE", "METHOD_NOT_ALLOWED", "MOVED_PERMANENTLY", "MOVED_TEMPORARILY", "MULTIPLE_CHOICES", "MULTI_STATUS", "NETWORK_AUTHENTICATION_REQUIRED", "NON_AUTHORITATIVE_INFORMATION", "NOT_ACCEPTABLE", "NOT_EXTENDED", "NOT_FOUND", "NOT_IMPLEMENTED", "NOT_MODIFIED", "NO_CONTENT", "OK", "PARTIAL_CONTENT", "PAYLOAD_TOO_LARGE", "PAYMENT_REQUIRED", "PERMANENT_REDIRECT", "PRECONDITION_FAILED", "PRECONDITION_REQUIRED", "PROCESSING", "PROXY_AUTHENTICATION_REQUIRED", "REQUESTED_RANGE_NOT_SATISFIABLE", "REQUEST_ENTITY_TOO_LARGE", "REQUEST_HEADER_FIELDS_TOO_LARGE", "REQUEST_TIMEOUT", "REQUEST_URI_TOO_LONG", "RESET_CONTENT", "SEE_OTHER", "SERVICE_UNAVAILABLE", "SWITCHING_PROTOCOLS", "TEMPORARY_REDIRECT", "TOO_EARLY", "TOO_MANY_REQUESTS", "UNAUTHORIZED", "UNAVAILABLE_FOR_LEGAL_REASONS", "UNPROCESSABLE_ENTITY", "UNSUPPORTED_MEDIA_TYPE", "UPGRADE_REQUIRED", "URI_TOO_LONG", "USE_PROXY", "VARIANT_ALSO_NEGOTIATES" ] }, "view": { "$ref": "#/definitions/View" }, "viewName": { "type": "string" } }, "title": "ModelAndView" }, "Order": { "type": "object", "properties": { "code": { "type": "string" }, "cost": { "type": "number" }, "narrative": { "type": "string" }, "orderdate": { "type": "string", "format": "date-time" }, "srList": { "type": "array", "items": { "$ref": "#/definitions/ServiceRequest" } } }, "title": "Order" }, "Service": { "type": "object", "properties": { "code": { "type": "string" }, "description": { "type": "string" }, "sg": { "$ref": "#/definitions/ServiceGroup" } }, "title": "Service" }, "ServiceGroup": { "type": "object", "properties": { "code": { "type": "string" }, "description": { "type": "string" }, "groupemail": { "type": "string" }, "managerid": { "type": "integer", "format": "int32" } }, "title": "ServiceGroup" }, "ServiceRequest": { "type": "object", "properties": { "inc": { "$ref": "#/definitions/Incident" }, "narrative": { "type": "string" }, "requesttime": { "type": "string", "format": "date-time" }, "stList": { "type": "array", "items": { "$ref": "#/definitions/Status" } } }, "title": "ServiceRequest" }, "Status": { "type": "object", "properties": { "narrative": { "type": "string" }, "status": { "type": "string" }, "statustime": { "type": "string", "format": "date-time" } }, "title": "Status" }, "View": { "type": "object", "properties": { "contentType": { "type": "string" } }, "title": "View" } } }