22 changed files with 284 additions and 11 deletions
@ -0,0 +1,8 @@ |
|||
<Project Sdk="Microsoft.NET.Sdk"> |
|||
|
|||
<PropertyGroup> |
|||
<OutputType>Exe</OutputType> |
|||
<TargetFramework>net5.0</TargetFramework> |
|||
</PropertyGroup> |
|||
|
|||
</Project> |
|||
@ -0,0 +1,12 @@ |
|||
using System; |
|||
|
|||
namespace ConsoleApp1 |
|||
{ |
|||
class Program |
|||
{ |
|||
static void Main(string[] args) |
|||
{ |
|||
Console.WriteLine("Hello World!"); |
|||
} |
|||
} |
|||
} |
|||
@ -0,0 +1,31 @@ |
|||
|
|||
Microsoft Visual Studio Solution File, Format Version 12.00 |
|||
# Visual Studio Version 16 |
|||
VisualStudioVersion = 16.0.30709.132 |
|||
MinimumVisualStudioVersion = 10.0.40219.1 |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WebApplication1", "WebApplication1.csproj", "{1E41DB1E-938D-4030-B8C7-B90C64A7B6CC}" |
|||
EndProject |
|||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ConsoleApp2", "..\ConsoleApp2\ConsoleApp2.csproj", "{95D5C921-BDC7-4A88-AAAD-EF09B81221EF}" |
|||
EndProject |
|||
Global |
|||
GlobalSection(SolutionConfigurationPlatforms) = preSolution |
|||
Debug|Any CPU = Debug|Any CPU |
|||
Release|Any CPU = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(ProjectConfigurationPlatforms) = postSolution |
|||
{1E41DB1E-938D-4030-B8C7-B90C64A7B6CC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{1E41DB1E-938D-4030-B8C7-B90C64A7B6CC}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{1E41DB1E-938D-4030-B8C7-B90C64A7B6CC}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{1E41DB1E-938D-4030-B8C7-B90C64A7B6CC}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
{95D5C921-BDC7-4A88-AAAD-EF09B81221EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU |
|||
{95D5C921-BDC7-4A88-AAAD-EF09B81221EF}.Debug|Any CPU.Build.0 = Debug|Any CPU |
|||
{95D5C921-BDC7-4A88-AAAD-EF09B81221EF}.Release|Any CPU.ActiveCfg = Release|Any CPU |
|||
{95D5C921-BDC7-4A88-AAAD-EF09B81221EF}.Release|Any CPU.Build.0 = Release|Any CPU |
|||
EndGlobalSection |
|||
GlobalSection(SolutionProperties) = preSolution |
|||
HideSolutionNode = FALSE |
|||
EndGlobalSection |
|||
GlobalSection(ExtensibilityGlobals) = postSolution |
|||
SolutionGuid = {F485B05F-F662-4D8B-8E28-EB57AA152B44} |
|||
EndGlobalSection |
|||
EndGlobal |
|||
@ -0,0 +1,222 @@ |
|||
{ |
|||
"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 |
|||
} |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue