Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **Request type:**
- * POST
- **JSON request body:**
- * { "userNameAndSurname" : "" , "fourLetterMobicaShortcut" : "" , "userEmailAddress" : "" }
- **Expected response:**
- code: 200 OK
- - format:
- `{
- "userID": "userID",
- "userNameAndSurname": "userNameAndSurname",
- "fourLetterMobicaShortcut": "fourLetterMobicaShortcut",
- "userEmailAddress": "userEmailAddress"
- }`
- - example:
- `{
- "userID": "5971c458ca9da41aa484ff26",
- "userNameAndSurname": "Name Lastname",
- "fourLetterMobicaShortcut": "NALA",
- "userEmailAddress": "email.address@mobica.com"
- }`
- code: 400 Bad Request
- - format:
- `{
- "errors": [
- ""
- ]
- }`
- - example:
- `{
- "errors": [
- "Niepoprawny 4-cyfrowy skrot Mobicowy.",
- "Akceptowalne są tylko e-maile zarejestrowane w domenie mobica.com"
- ]
- }`
- All 400 Bad Requests errors:
- - "Niepoprawny 4-cyfrowy skrot Mobicowy."
- - If four letter Mobica shortcut doesn't have 4 characters.
- - "Imię i nazwisko nie może być puste."
- - If name and surname field is null, or someone entered less than 3 characters.
- - "Należy wprowadzić pełne imię i nazwisko."
- - If someone entered only name, or last name.
- - "Imie i nazwisko nie może być dłuższe niż 255 znaków."
- - If someone entered name, or last name with more than 255 characters.
- - "Pole e-mail nie może być puste."
- - If email field is null.
- - "Akceptowalne są tylko e-maile zarejestrowane w domenie mobica.com"
- - If someone entered e-mail without @mobica.com domain.
- - "E-mail nie może być dłuższy niż 100 znaków."
- - If someone entered e-mail with more than 255 characters.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement