forked from WEB-IB-SS26/development-ib
131 lines
4.2 KiB
JSON
131 lines
4.2 KiB
JSON
{
|
|
"openapi": "3.0.0",
|
|
"info": {
|
|
"title": "Workshop Anmeldungs API",
|
|
"version": "1.0.0"
|
|
},
|
|
"servers": [
|
|
{
|
|
"url": "https://web4-637691723779.europe-west1.run.app"
|
|
}
|
|
],
|
|
"paths": {
|
|
"/registrierung": {
|
|
"post": {
|
|
"summary": "Returns a response from the wokshop server",
|
|
"requestBody":{
|
|
"required": true,
|
|
"content": {
|
|
"application/x-www-form-urlencoded":{
|
|
"schema":{
|
|
"type": "object",
|
|
"properties": {
|
|
"vorname":{
|
|
"type":"string",
|
|
"example":"Alice"
|
|
},
|
|
"nachname":{
|
|
"type":"string",
|
|
"example":"Ecila"
|
|
},
|
|
"email":{
|
|
"type":"string",
|
|
"example":"Alice@mail.de"
|
|
},
|
|
"telefon":{
|
|
"type":"string",
|
|
"example":"0123/456789"
|
|
},
|
|
"session":{
|
|
"type":"string",
|
|
"enum": ["vormittag","nachmittag","abendsession","wochenende"],
|
|
"example":"vormittag"
|
|
},
|
|
"agb":{
|
|
"type":"boolean",
|
|
"example": true
|
|
},
|
|
"newsletter":{
|
|
"type":"boolean",
|
|
"example": false
|
|
},
|
|
"equipment":{
|
|
"type":"boolean",
|
|
"example": false
|
|
},
|
|
"format":{
|
|
"type":"string",
|
|
"enum": ["praesenz","online"],
|
|
"example":"online"
|
|
}
|
|
},
|
|
"required": ["vorname", "nachname","agb","format"]
|
|
}
|
|
},
|
|
|
|
"application/json":{
|
|
"schema":{
|
|
"type": "object",
|
|
"properties": {
|
|
"Vorname":{
|
|
"type":"string",
|
|
"example":"Alice"
|
|
},
|
|
"Nachname":{
|
|
"type":"string",
|
|
"example":"Ecila"
|
|
},
|
|
"Email":{
|
|
"type":"string",
|
|
"example":"Alice@mail.de"
|
|
},
|
|
"Telefon":{
|
|
"type":"string",
|
|
"example":"0123/456789"
|
|
},
|
|
"Session":{
|
|
"type":"string",
|
|
"enum": ["vormittag","nachmittag","abendsession","wochenende"],
|
|
"example":"vormittag"
|
|
},
|
|
"Agb":{
|
|
"type":"boolean",
|
|
"example": true
|
|
},
|
|
"Newsletter":{
|
|
"type":"boolean",
|
|
"example": false
|
|
},
|
|
"Equipment":{
|
|
"type":"boolean",
|
|
"example": false
|
|
},
|
|
"Format":{
|
|
"type":"string",
|
|
"enum": ["praesenz","online"],
|
|
"example":"online"
|
|
}
|
|
},
|
|
"required": ["Vorname", "Nachname","Agb","Format"]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
|
|
"responses": {
|
|
"200": {
|
|
"description": "Erfolgreiche Anmeldungs",
|
|
"content": {
|
|
"text/plain": {
|
|
"schema": {
|
|
"type": "string"
|
|
},
|
|
"example": "Anmeldung erfolgreich!"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
} |