| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216 |
- // 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": {
- "type": "object"
- }
- }
- }
- }
- }
- }`))
- 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": {
- "type": "object"
- }
- }
- }
- }
- }
- }`))
- }
|