
API endpoints
Login user to AAS
Remarks
- Basic Auth required
- 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
Get info about logged-in user
Remarks
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
Get all user privileges
Remarks
- Login with user permission required
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
Get all organizations of user
Remarks
- Login with user permission required
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
Create new user
Remarks
- No Login (anonymous) required
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
Delete existing user
Remarks
- 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