// Code generated by go-swagger; DO NOT EDIT. package restapi // This file was generated by the swagger tool. // Editing this file might prove futile when you re-run the swagger generate command import ( "encoding/json" ) var ( // SwaggerJSON embedded version of the swagger document used at generation time SwaggerJSON json.RawMessage // FlatSwaggerJSON embedded flattened version of the swagger document used at generation time FlatSwaggerJSON json.RawMessage ) func init() { SwaggerJSON = json.RawMessage([]byte(`{ "consumes": [ "application/eu.reverservices.gem.spaas.v1+json" ], "produces": [ "application/eu.reverservices.gem.spaas.v1+json" ], "schemes": [ "http" ], "swagger": "2.0", "info": { "description": "This API exposes an algorithm that computes optimal power production allocation for a given power need and power plant capacity.", "title": "Optimal power production allocation service", "version": "0.0.1" }, "paths": { "/productionplan": { "post": { "description": "Compute the optimal production plan for given load and capacity.\n", "consumes": [ "application/json" ], "produces": [ "application/json" ], "summary": "compute production plan", "operationId": "ProductionPlan", "parameters": [ { "name": "payload format", "in": "body", "schema": { "$ref": "#/definitions/payload" } } ], "responses": { "200": { "description": "returns optimal production plan", "schema": { "type": "array", "items": { "type": "object" } } }, "default": { "description": "generic error response", "schema": { "$ref": "#/definitions/error" } } } } } }, "definitions": { "error": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string" } } }, "payload": { "type": "object", "required": [ "load", "fuels", "powerplants" ], "properties": { "fuels": { "type": "object" }, "load": { "type": "number", "format": "float64" }, "powerplants": { "type": "array", "items": { "$ref": "#/definitions/powerplant" } } } }, "powerplant": { "type": "object", "required": [ "name", "type", "efficiency", "pmin", "pmax" ], "properties": { "efficiency": { "type": "number", "format": "float64" }, "name": { "type": "string" }, "pmax": { "type": "number", "format": "float64" }, "pmin": { "type": "number", "format": "float64" }, "type": { "type": "string" } } } } }`)) FlatSwaggerJSON = json.RawMessage([]byte(`{ "consumes": [ "application/eu.reverservices.gem.spaas.v1+json" ], "produces": [ "application/eu.reverservices.gem.spaas.v1+json" ], "schemes": [ "http" ], "swagger": "2.0", "info": { "description": "This API exposes an algorithm that computes optimal power production allocation for a given power need and power plant capacity.", "title": "Optimal power production allocation service", "version": "0.0.1" }, "paths": { "/productionplan": { "post": { "description": "Compute the optimal production plan for given load and capacity.\n", "consumes": [ "application/json" ], "produces": [ "application/json" ], "summary": "compute production plan", "operationId": "ProductionPlan", "parameters": [ { "name": "payload format", "in": "body", "schema": { "$ref": "#/definitions/payload" } } ], "responses": { "200": { "description": "returns optimal production plan", "schema": { "type": "array", "items": { "type": "object" } } }, "default": { "description": "generic error response", "schema": { "$ref": "#/definitions/error" } } } } } }, "definitions": { "error": { "type": "object", "required": [ "message" ], "properties": { "code": { "type": "integer", "format": "int64" }, "message": { "type": "string" } } }, "payload": { "type": "object", "required": [ "load", "fuels", "powerplants" ], "properties": { "fuels": { "type": "object" }, "load": { "type": "number", "format": "float64" }, "powerplants": { "type": "array", "items": { "$ref": "#/definitions/powerplant" } } } }, "powerplant": { "type": "object", "required": [ "name", "type", "efficiency", "pmin", "pmax" ], "properties": { "efficiency": { "type": "number", "format": "float64" }, "name": { "type": "string" }, "pmax": { "type": "number", "format": "float64" }, "pmin": { "type": "number", "format": "float64" }, "type": { "type": "string" } } } } }`)) }