{ "openapi": "3.0.1", "info": { "title": "Aufgabe19", "version": "1.0" }, "paths": { "/api/Customer": { "get": { "tags": [ "Customer" ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Customer" } } }, "application/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Customer" } } }, "text/json": { "schema": { "type": "array", "items": { "$ref": "#/components/schemas/Customer" } } } } } } }, "post": { "tags": [ "Customer" ], "requestBody": { "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Customer" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Customer" } }, "application/*+json": { "schema": { "$ref": "#/components/schemas/Customer" } } } }, "responses": { "200": { "description": "Success" } } } }, "/api/Customer/{id}": { "get": { "tags": [ "Customer" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success", "content": { "text/plain": { "schema": { "$ref": "#/components/schemas/Customer" } }, "application/json": { "schema": { "$ref": "#/components/schemas/Customer" } }, "text/json": { "schema": { "$ref": "#/components/schemas/Customer" } } } } } }, "delete": { "tags": [ "Customer" ], "parameters": [ { "name": "id", "in": "path", "required": true, "schema": { "type": "integer", "format": "int32" } } ], "responses": { "200": { "description": "Success" } } } } }, "components": { "schemas": { "Customer": { "type": "object", "properties": { "id": { "type": "integer", "format": "int32" }, "firstName": { "type": "string", "nullable": true }, "lastName": { "type": "string", "nullable": true } }, "additionalProperties": false } } } }