{ "openapi": "3.0.1", "info": { "title": "AccountingDemoAPI", "version": "1.0" }, "paths": { "/api/Kids": { "get": { "tags": [ "Kids" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Kid" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Kid" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Kid" } } } } } } }, "post": { "tags": [ "Kids" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Kid" } } } }, "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Kids" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Kid" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Kids" ], "parameters": [ { "name": "siblings", "in": "query", "schema": { "type": "boolean" } } ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Kid" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Kids/Kid/{id}": { "get": { "tags": [ "Kids" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Kid" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Kid" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Kid" } } } } } } }, "/api/Price/prices": { "get": { "tags": [ "Price" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Price" } } } } } } } }, "/api/Price/price/{id}": { "get": { "tags": [ "Price" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Price" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Price" } } } } } } }, "/api/Price": { "post": { "tags": [ "Price" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Price" } } } }, "responses": { "200": { "description": "OK" } } }, "put": { "tags": [ "Price" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Price" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Price" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Price" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Price" } } } }, "responses": { "200": { "description": "OK" } } } }, "/api/Wdays/wdays": { "get": { "tags": [ "Wdays" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } } } } } } }, "/api/Wdays/wday/{id}": { "get": { "tags": [ "Wdays" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/WDay" } }, "application/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WDay" } } } } } } }, "/api/Wdays/allwdays": { "get": { "tags": [ "Wdays" ], "responses": { "200": { "description": "OK", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/WDay" } } } } } } } }, "/api/Wdays": { "put": { "tags": [ "Wdays" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WDay" } } } }, "responses": { "200": { "description": "OK" } } }, "post": { "tags": [ "Wdays" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WDay" } } } }, "responses": { "200": { "description": "OK" } } }, "delete": { "tags": [ "Wdays" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "text/json": { "schema": { "$ref": "#/components/schemas/WDay" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/WDay" } } } }, "responses": { "200": { "description": "OK" } } } }, "/WeatherForecast": { "get": { "tags": [ "WeatherForecast" ], "operationId": "GetWeatherForecast", "responses": { "200": { "description": "OK", "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": { "Kid": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "name": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true }, "birthDate": { "type": "string", "format": "date", "nullable": true }, "isDeleted": { "type": "boolean" }, "siblingTo": { "type": "array", "items": { "$ref": "#/components/schemas/Kid" }, "nullable": true }, "siblingFrom": { "type": "array", "items": { "$ref": "#/components/schemas/Kid" }, "nullable": true } }, "additionalProperties": false }, "Price": { "required": [ "label", "value" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "label": { "type": "string", "nullable": true }, "value": { "type": "number", "format": "float" }, "isDeleted": { "type": "boolean" } }, "additionalProperties": false }, "WDay": { "required": [ "kid", "price" ], "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "date": { "type": "string", "format": "date" }, "arrival": { "type": "string", "format": "time", "nullable": true }, "departure": { "type": "string", "format": "time", "nullable": true }, "kid": { "$ref": "#/components/schemas/Kid" }, "price": { "$ref": "#/components/schemas/Price" } }, "additionalProperties": false }, "WeatherForecast": { "type": "object", "properties": { "date": { "type": "string", "format": "date" }, "temperatureC": { "type": "integer", "format": "int32" }, "temperatureF": { "type": "integer", "format": "int32", "readOnly": true }, "summary": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }