You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
222 lines
5.1 KiB
222 lines
5.1 KiB
|
9 months ago
|
{
|
||
|
|
"openapi": "3.0.1",
|
||
|
|
"info": {
|
||
|
|
"title": "WebApplication1",
|
||
|
|
"version": "v1"
|
||
|
|
},
|
||
|
|
"paths": {
|
||
|
|
"/api/v1/Field/new": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Field"
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Success",
|
||
|
|
"content": {
|
||
|
|
"text/plain": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"text/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/Field/move": {
|
||
|
|
"post": {
|
||
|
|
"tags": [
|
||
|
|
"Field"
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "identifier",
|
||
|
|
"in": "query",
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"nullable": true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Success",
|
||
|
|
"content": {
|
||
|
|
"text/plain": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"text/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/api/v1/Field/list": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"Field"
|
||
|
|
],
|
||
|
|
"parameters": [
|
||
|
|
{
|
||
|
|
"name": "identifier",
|
||
|
|
"in": "query",
|
||
|
|
"schema": {
|
||
|
|
"type": "string",
|
||
|
|
"nullable": true
|
||
|
|
}
|
||
|
|
}
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Success",
|
||
|
|
"content": {
|
||
|
|
"text/plain": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"text/json": {
|
||
|
|
"schema": {
|
||
|
|
"$ref": "#/components/schemas/Field"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"/WeatherForecast": {
|
||
|
|
"get": {
|
||
|
|
"tags": [
|
||
|
|
"WeatherForecast"
|
||
|
|
],
|
||
|
|
"responses": {
|
||
|
|
"200": {
|
||
|
|
"description": "Success",
|
||
|
|
"content": {
|
||
|
|
"text/plain": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/WeatherForecast"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"application/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/WeatherForecast"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"text/json": {
|
||
|
|
"schema": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/WeatherForecast"
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"components": {
|
||
|
|
"schemas": {
|
||
|
|
"Figure": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"figureColor": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32"
|
||
|
|
},
|
||
|
|
"figureType": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32"
|
||
|
|
},
|
||
|
|
"posX": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32"
|
||
|
|
},
|
||
|
|
"posY": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32"
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false
|
||
|
|
},
|
||
|
|
"Field": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"identifier": {
|
||
|
|
"type": "string",
|
||
|
|
"nullable": true,
|
||
|
|
"readOnly": true
|
||
|
|
},
|
||
|
|
"figures": {
|
||
|
|
"type": "array",
|
||
|
|
"items": {
|
||
|
|
"$ref": "#/components/schemas/Figure"
|
||
|
|
},
|
||
|
|
"nullable": true,
|
||
|
|
"readOnly": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false
|
||
|
|
},
|
||
|
|
"WeatherForecast": {
|
||
|
|
"type": "object",
|
||
|
|
"properties": {
|
||
|
|
"date": {
|
||
|
|
"type": "string",
|
||
|
|
"format": "date-time"
|
||
|
|
},
|
||
|
|
"temperatureC": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32"
|
||
|
|
},
|
||
|
|
"temperatureF": {
|
||
|
|
"type": "integer",
|
||
|
|
"format": "int32",
|
||
|
|
"readOnly": true
|
||
|
|
},
|
||
|
|
"summaryWeather": {
|
||
|
|
"type": "string",
|
||
|
|
"nullable": true
|
||
|
|
}
|
||
|
|
},
|
||
|
|
"additionalProperties": false
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|