Commit f6e48ce9 authored by Sonja Happ's avatar Sonja Happ
Browse files

update files generated by swag to fix import bug in openapi package

parent d2c037a4
// GENERATED BY THE COMMAND ABOVE; DO NOT EDIT
// This file was generated by swaggo/swag at
// 2021-01-12 17:04:27.751319166 +0100 CET m=+0.123714746
// This file was generated by swaggo/swag
package docs
package api
import (
"bytes"
......@@ -52,7 +51,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/user.loginRequest"
}
}
......@@ -61,19 +59,19 @@ var doc = `{
"200": {
"description": "JSON web token, success status, message and authenticated user object",
"schema": {
"$ref": "#/definitions/docs.ResponseAuthenticate"
"$ref": "#/definitions/api.ResponseAuthenticate"
}
},
"401": {
"description": "Unauthorized",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error.",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -107,25 +105,25 @@ var doc = `{
"200": {
"description": "Component configurations which belong to scenario",
"schema": {
"$ref": "#/definitions/docs.ResponseConfigs"
"$ref": "#/definitions/api.ResponseConfigs"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -154,7 +152,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/component_configuration.addConfigRequest"
}
}
......@@ -163,31 +160,31 @@ var doc = `{
"200": {
"description": "Component configuration that was added",
"schema": {
"$ref": "#/definitions/docs.ResponseConfig"
"$ref": "#/definitions/api.ResponseConfig"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -221,31 +218,31 @@ var doc = `{
"200": {
"description": "component configuration that was requested",
"schema": {
"$ref": "#/definitions/docs.ResponseConfig"
"$ref": "#/definitions/api.ResponseConfig"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -274,7 +271,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/component_configuration.updateConfigRequest"
}
},
......@@ -290,31 +286,31 @@ var doc = `{
"200": {
"description": "Component configuration that was added",
"schema": {
"$ref": "#/definitions/docs.ResponseConfig"
"$ref": "#/definitions/api.ResponseConfig"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -346,31 +342,31 @@ var doc = `{
"200": {
"description": "component configuration that was deleted",
"schema": {
"$ref": "#/definitions/docs.ResponseConfig"
"$ref": "#/definitions/api.ResponseConfig"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -404,25 +400,25 @@ var doc = `{
"200": {
"description": "Dashboards which belong to scenario",
"schema": {
"$ref": "#/definitions/docs.ResponseDashboards"
"$ref": "#/definitions/api.ResponseDashboards"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -451,7 +447,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/dashboard.addDashboardRequest"
}
}
......@@ -460,31 +455,31 @@ var doc = `{
"200": {
"description": "Dashboard that was added",
"schema": {
"$ref": "#/definitions/docs.ResponseDashboard"
"$ref": "#/definitions/api.ResponseDashboard"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -518,31 +513,31 @@ var doc = `{
"200": {
"description": "Dashboard that was requested",
"schema": {
"$ref": "#/definitions/docs.ResponseDashboard"
"$ref": "#/definitions/api.ResponseDashboard"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -571,7 +566,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/dashboard.updateDashboardRequest"
}
},
......@@ -587,31 +581,31 @@ var doc = `{
"200": {
"description": "Dashboard that was updated",
"schema": {
"$ref": "#/definitions/docs.ResponseDashboard"
"$ref": "#/definitions/api.ResponseDashboard"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -643,31 +637,31 @@ var doc = `{
"200": {
"description": "Dashboard that was deleted",
"schema": {
"$ref": "#/definitions/docs.ResponseDashboard"
"$ref": "#/definitions/api.ResponseDashboard"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -701,25 +695,25 @@ var doc = `{
"200": {
"description": "Files which belong to scenario",
"schema": {
"$ref": "#/definitions/docs.ResponseFiles"
"$ref": "#/definitions/api.ResponseFiles"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -767,31 +761,31 @@ var doc = `{
"200": {
"description": "File that was added",
"schema": {
"$ref": "#/definitions/docs.ResponseFile"
"$ref": "#/definitions/api.ResponseFile"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -839,31 +833,31 @@ var doc = `{
"200": {
"description": "File that was requested",
"schema": {
"$ref": "#/definitions/docs.ResponseFile"
"$ref": "#/definitions/api.ResponseFile"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -911,31 +905,31 @@ var doc = `{
"200": {
"description": "File that was updated",
"schema": {
"$ref": "#/definitions/docs.ResponseFile"
"$ref": "#/definitions/api.ResponseFile"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -967,31 +961,31 @@ var doc = `{
"200": {
"description": "File that was deleted",
"schema": {
"$ref": "#/definitions/docs.ResponseFile"
"$ref": "#/definitions/api.ResponseFile"
}
},
"400": {
"description": "Bad request",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -1008,13 +1002,16 @@ var doc = `{
"summary": "Get health status of backend",
"operationId": "getHealth",
"responses": {
"200": {
"description": "Backend is healthy, database and AMQP broker connections are alive"
"204": {
"description": "Backend is healthy, database and AMQP broker connections are alive",
"schema": {
"type": "string"
}
},
"500": {
"description": "Backend is NOT healthy",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -1039,25 +1036,25 @@ var doc = `{
"200": {
"description": "ICs requested",
"schema": {
"$ref": "#/definitions/docs.ResponseICs"
"$ref": "#/definitions/api.ResponseICs"
}
},
"404": {
"description": "Not found",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"422": {
"description": "Unprocessable entity",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
},
"500": {
"description": "Internal server error",
"schema": {
"$ref": "#/definitions/docs.ResponseError"
"$ref": "#/definitions/api.ResponseError"
}
}
}
......@@ -1086,7 +1083,6 @@ var doc = `{
"in": "body",
"required": true,
"schema": {
"type": "object",
"$ref": "#/definitions/infrastructure_component.AddICRequest"
}
}
......@@ -1095,31 +1091,31 @@ var doc = `{
"200": {
"description": "Infrastructure Component that was added",
"schema": {
"$ref": "#/definitions/docs.ResponseIC"
"$ref": "#/definitions/api.ResponseIC"
}
},