Account

-National federation only-

Call account

Path:

GET /api/user?username={username}

{username} must be replaced by the username

Example:

https://test.ophardt.online/de/api/user/xxx.yyyyy@swe

Result:

Name When? Value
code always 200 if does not exist, 201 if does exist> 600 other error

Add new account:

Path:

PUT /api/user

Example:

https://test.ophardt.online/de/api/user/xxx.yyyyy@swe

JSON fields:

Field Mand. Type Value
username yes String Unique username
password yes(1) String Password (hashed)
passwordPlain yes(1) String Password (unencrypted/unhashed) [takes precedence]
lastname yes String National lastname
firstname yes String National firstname
email yes String email
nathlete no String National athlete id - to connect with the athlete
nclub no String National club id - to connect with the club without club access rights

Result:

Name When? Value
code always

200 successful
503 error: already existsts

user_id if successful id of new user