Link do pliku js ze źródłem:
link (js + fetch)
Użycie:
adres url: https://iwound-proxy.tarexperts.net/fetch/https://www.iw-system.polmedi.com/api/extUser/clinical/ab2de132?t=t
(id:31 = ab2de132?t=t, Zespół Leczenie Ran Gemini)
- przez proxy cors
adres url: https://iw-system.polmedi.com/api/extUser/clinical/ab2de132?t=t - bez proxy (nieaktywny)
Zwrotki:
- status 201 - sukces
{
"status": 201,
"message": "User created",
"therapyLink": url, #link do utworzenia terapii z logowaniem
"oneLoginLink": url #link do utworzenia terapii bez logowania - jednorazowy
}
- status 422 - błędy walidacji (w obiekcie errors jako tablice komunikatów do danego pola formularza)
{
"status": 422,
"type": "validation_error",
"title": "There was a validation error",
"errors": {
"email": [
"Adres email musi być unikalny"
],
"pesel": [
"Użytkownik o takim numerze PESEL już istnieje."
]
}
}