Download OpenAPI specification:Download
PHP Course (ABV FU Berlin) 2024 Exam
Register a new user
| username required | string |
| email required | string |
| password required | string |
{- "username": "string",
- "email": "string",
- "password": "string"
}trueList all users.
| p | integer >= 0 Default: 0 Current page. |
| l | integer [ 0 .. 30 ] Default: 10 The number of items to return. |
{- "pages": 1,
- "data": [
- {
- "id": 1,
- "username": "Admin",
- "status": 1,
- "email": "marvin@zedat.fu-berlin.de",
- "image": "669d41fbdb56b.png",
- "isAdmin": true,
- "memberSince": {
- "date": "2024-07-22 14:02:49.000000",
- "timezone_type": 3,
- "timezone": "Europe/Berlin"
}, - "postCount": 3
}, - {
- "id": 2,
- "username": "Max",
- "status": 1,
- "email": "max@moritz.net",
- "image": "profilbilder/max.svg",
- "isAdmin": false,
- "memberSince": {
- "date": "2024-07-22 03:07:41.000000",
- "timezone_type": 3,
- "timezone": "Europe/Berlin"
}, - "postCount": 2
}
]
}Get user by ID.
| id required | integer <int14> User ID |
{- "id": 1,
- "username": "Admin",
- "status": 1,
- "email": "marvin@zedat.fu-berlin.de",
- "image": "669d41fbdb56b.png",
- "isAdmin": true,
- "memberSince": {
- "date": "2024-07-22 14:02:49.000000",
- "timezone_type": 3,
- "timezone": "Europe/Berlin"
}, - "postCount": 3
}Update user with ID. Fields are updated in order username, password, image. If one fails, subsequent are not updated.
Use special ID self to update logged in user.
Requires logged in user to have admin permissions for any ID other than self.
| id required | integer <int14> User ID |
| username | string |
| password | string |
| image | string <binary> |
{- "username": "string",
- "password": "string",
- "image": "string"
}trueList all posts, return full user data if authenticated.
| p | integer >= 0 Default: 0 Current page. |
| l | integer [ 0 .. 30 ] Default: 10 The number of items to return. |
{- "pages": 1,
- "data": [
- {
- "id": 1,
- "user": {
- "username": "Admin"
}, - "content": "Hey,\r\nGästebucher sind cool…\r\nDas Gästebuch ist freigegeben.\r\nIch hoffe auf viele Beiträge!",
- "postedAt": {
- "date": "2020-03-03 09:03:00.000000",
- "timezone_type": 3,
- "timezone": "Europe/Berlin"
}
}, - {
- "id": 2,
- "user": {
- "username": "Max"
}, - "content": "Bin über Google auf deine Seite gestoßen, danke für das geniale Gästebuch. Werde in Zukunft des Öftern vorbeischaun…\r\n\r\nLiebe Grüsse, Max",
- "postedAt": {
- "date": "2020-03-04 12:26:40.000000",
- "timezone_type": 3,
- "timezone": "Europe/Berlin"
}
}
]
}