58 lines
1.8 KiB
HTTP
58 lines
1.8 KiB
HTTP
### Full submission, as the TYPO3 ApplicationApiFinisher sends it.
|
|
### The key is APPLICATION_FORM_API_KEY of the stage being called; keep the real values in
|
|
### http-client.private.env.json, which is not in the repository.
|
|
POST https://myep-team.ddev.site/api/application-forms
|
|
Content-Type: application/json
|
|
X-Api-Key: {{applicationFormApiKey}}
|
|
|
|
{
|
|
"form": "applicationform",
|
|
"formLabel": "Bewerbungsformular",
|
|
"submittedAt": "2026-09-22T12:30:00+02:00",
|
|
"pageUid": 1421,
|
|
"pageUrl": "https://www.ep-reisen.de/jobs/bewerbung",
|
|
"firstName": "Anna",
|
|
"lastName": "Muster",
|
|
"email": "[email protected]",
|
|
"phone": "+49 30 1234567",
|
|
"mobile": "+49 170 1234567",
|
|
"birthDate": "01.01.1990",
|
|
"street": "Musterstraße 1",
|
|
"zipCode": "10115",
|
|
"city": "Berlin",
|
|
"details": {
|
|
"Nationalität": "deutsch",
|
|
"Führerschein": "ja",
|
|
"Ausbildung/Studium": "Tourismusmanagement",
|
|
"Bewerbung als": ["Reiseleitung", "Skilehrer"],
|
|
"Ich fahre": ["Ski", "Snowboard"],
|
|
"Wie gut fahre ich Ski": "fortgeschritten",
|
|
"Skifahrer seit": "2004",
|
|
"Einsatz datum": "ab 20.12.2026"
|
|
}
|
|
}
|
|
|
|
### A form that maps nothing but the basics - valid, everything else is absent, not empty.
|
|
POST https://myep-team.ddev.site/api/application-forms
|
|
Content-Type: application/json
|
|
X-Api-Key: {{applicationFormApiKey}}
|
|
|
|
{
|
|
"form": "contactform",
|
|
"formLabel": "Kontaktformular",
|
|
"submittedAt": "2026-09-22T12:30:00+02:00",
|
|
"details": {}
|
|
}
|
|
|
|
### Wrong key: 401, and the submission is dropped on the TYPO3 side without a retry.
|
|
POST https://myep-team.ddev.site/api/application-forms
|
|
Content-Type: application/json
|
|
X-Api-Key: definitely-not-the-key
|
|
|
|
{
|
|
"form": "applicationform",
|
|
"formLabel": "Bewerbungsformular",
|
|
"submittedAt": "2026-09-22T12:30:00+02:00",
|
|
"details": {}
|
|
}
|