API endpoints
US01 | Login user to AAS
GET | /user/login |
---|
Basic Authentification required
Remarks
- This call delivers the JWT token (valid for 24h)
Status codes
- 200 = Successful
- 400 = Bad Request
- 401 = User not authorized to login
- 404 = User not found
- 500 = Internal server error
Example call(s)
- GET https://dev-ddb.fiz-karlsruhe.de/api/2/user/login
US02 | Get info about logged-in user
GET | /user/info |
---|
User permission required
Response payload
Status codes
- 200 = Successful
- 400 = Bad Request
- 401 = User not authorized to login
- 404 = User not found
- 500 = Internal server error
Example call(s)
- GET https://dev-ddb.fiz-karlsruhe.de/api/2/user/info
US03 | Get all user privileges
GET | /user/privileges |
---|
User permission required
Response payload
Status codes
- 200 = Successful
- 400 = Bad Request
- 401 = User not authorized to login
- 403 = Authentication temporarily blocked
- 404 = User not found
- 423 = User is blacklisted
- 428 = User has "unconfirmed" status
- 500 = Internal server error
Example call(s)
- GET https://dev-ddb.fiz-karlsruhe.de/api/2/user/privileges
US04 | Get all organizations of user
GET | /user/organizations |
---|
User permission required
Response payload
Status codes
- 200 = Successful
- 304 = Attribute modified
- 400 = Bad Request
- 401 = User not authorized to login
- 403 = Authentication temporarily blocked
- 404 = User not found
- 423 = User is blacklisted
- 428 = User has "unconfirmed" status
- 500 = Internal server error
Example call(s)
- GET https://dev-ddb.fiz-karlsruhe.de/api/2/user/organizations
US05 | Create new user
POST | /user |
---|
No Login (anonymous) required
Request payload
Response payload
Status codes
- 200 = Successful
- 400 = Bad Request
- 401 = User not authorized to login
- 409 = Illegal State
- 500 = Internal server error
Example call(s)
- POST https://dev-ddb.fiz-karlsruhe.de/api/2/user
US06 | Delete existing user
DELETE | /user/{id} |
---|
Admin permission required
Status codes
- 204 = User successful deleted
- 400 = Bad Request
- 401 = User not authorized to login
- 404 = User not found
- 423 = User is blacklisted
- 428 = User has "unconfirmed" status
- 500 = Internal server error
Example call(s)
- DELETE https://dev-ddb.fiz-karlsruhe.de/api/2/user/cb5d9c5810e985e7beda092b22e1e480