forked from WEB-IMB-WS2526/lab-development-imb
73 lines
1.7 KiB
YAML
73 lines
1.7 KiB
YAML
openapi: 3.0.0
|
|
info:
|
|
title: Workshop-Anmeldung API
|
|
version: 1.0.0
|
|
servers:
|
|
- url: https://web-637691723779.europe-west2.run.app
|
|
paths:
|
|
/registrierung:
|
|
post:
|
|
summary: Anmeldung zu einem Workshop
|
|
description: API für Anmeldedaten eines den Workshops.
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/x-www-form-urlencoded:
|
|
schema:
|
|
$ref: '#/components/schemas/WorkshopForm'
|
|
application/json:
|
|
schema:
|
|
$ref: '#/components/schemas/WorkshopForm'
|
|
responses:
|
|
'200':
|
|
description: Erfolgreiche Anmeldung
|
|
'400':
|
|
description: Ungültige Eingabe
|
|
components:
|
|
schemas:
|
|
WorkshopForm:
|
|
type: object
|
|
properties:
|
|
vorname:
|
|
type: string
|
|
example: "Max"
|
|
nachname:
|
|
type: string
|
|
example: "Mustermann"
|
|
email:
|
|
type: string
|
|
format: email
|
|
example: "max@beispiel.de"
|
|
handy:
|
|
type: string
|
|
example: "+491751234567"
|
|
kurs:
|
|
type: string
|
|
example: "Webentwicklung Basics"
|
|
session:
|
|
type: string
|
|
enum: ["vormittag", "nachmittag", "abend", "wochenende"]
|
|
example: "abend"
|
|
agb:
|
|
type: string
|
|
enum: ["ja", "on"]
|
|
example: "on"
|
|
newsletter:
|
|
type: string
|
|
enum: ["ja", "on"]
|
|
example: "ja"
|
|
equipment:
|
|
type: string
|
|
enum: ["ja", "on"]
|
|
example: "ja"
|
|
format:
|
|
type: string
|
|
enum: ["online", "praesenz"]
|
|
example: "online"
|
|
required:
|
|
- vorname
|
|
- nachname
|
|
- email
|
|
- agb
|
|
- format
|