forked from WEB-IB-SS26/development-ib
parent
cd66b8022b
commit
1c9ae7c8c8
|
|
@ -0,0 +1,131 @@
|
||||||
|
{
|
||||||
|
"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!"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue