diff --git a/.DS_Store b/.DS_Store index 2e61bb3..fc8a386 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/web/.DS_Store b/web/.DS_Store index 9b701d1..50bcb00 100644 Binary files a/web/.DS_Store and b/web/.DS_Store differ diff --git a/web/06/labor/06_loesungen/uebung03.json b/web/06/labor/06_loesungen/uebung03.json new file mode 100644 index 0000000..3a62fd4 --- /dev/null +++ b/web/06/labor/06_loesungen/uebung03.json @@ -0,0 +1,118 @@ +{ + "openapi": "3.0.0", + "info": { + "title": "Workshop API", + "version": "1.0.0" + }, + "servers": [ + { + "url": "https://web2-637691723779.europe-west1.run.app" + } + ], + "paths": { + "/registrierung": { + "post": { + "summary": "Sends all information needed for registering at a workshop", + "requestBody": { + "required": false, + "content": { + "application/x-www-form-urlencoded": { + "schema": { + "$ref": "#/components/schemas/RegistrierungForm" + } + }, + "application/json": { + "schema": { + "$ref": "#/components/schemas/RegistrierungForm" + } + } + } + }, + "responses": { + "200": { + "description": "Success", + "content": { + "text/html": { + "schema": { + "type": "string" + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "text/plain": { + "schema": { + "type": "string", + "example": "Kein Formular gesendet" + } + } + } + } + } + } + } + }, + "components": { + "schemas": { + "RegistrierungForm": { + "type": "object", + "required": [ + "vorname", + "nachname", + "format" + ], + "properties": { + "vorname": { + "type": "string", + "example": "Zoya" + }, + "nachname": { + "type": "string", + "example": "Akhtar" + }, + "email": { + "type": "string", + "example": "z.akhtar@test.de" + }, + "telefon": { + "type": "string", + "example": "Zoya" + }, + "sessions": { + "type": "array", + "items": { + "type": "string", + "example": "vormittag" + }, + "example": [ + "vormittag", + "nachmittag" + ] + }, + "agb": { + "type": "string", + "enum": ["on","ja"], + "example": "on" + }, + "newsletter": { + "type": "string", + "enum": ["on","ja"], + "example": "ja" + }, + "equipment": { + "type": "string", + "enum": ["on","ja"], + "example": "ja" + }, + "format": { + "type": "string", + "enum": ["online","praesenz"], + "example": "online" + } + } + } + } + } +} \ No newline at end of file