2023-08-18 21:49:41 +00:00
|
|
|
# `/user/info` - GET
|
2023-08-18 16:05:12 +00:00
|
|
|
Returns information about the project.
|
|
|
|
|
2023-08-18 21:49:41 +00:00
|
|
|
|
|
|
|
## Urlencoded Parameters
|
|
|
|
You have to set one parameter.
|
|
|
|
Setting none or two parameters will result in a _400 Bad Request_ Response.
|
|
|
|
| Parameter | Description |
|
|
|
|
|-----------|--------------------------------------------------------------------|
|
|
|
|
| name | The username of the user on which the operation will be performed. |
|
|
|
|
| id | The userid of the user on which the operation will be performed. |
|
|
|
|
|
|
|
|
|
2023-08-18 16:05:12 +00:00
|
|
|
## Responses
|
|
|
|
### 200 - Success
|
|
|
|
__Content - JSON:__
|
|
|
|
| Field | Description |
|
|
|
|
|----------|-------------------------------------------------------------------|
|
|
|
|
| id | The users unique id. |
|
|
|
|
| name | The users unique username. |
|
|
|
|
| joined | The datetime when the user joined. Represented as UNIX timestamp. |
|
|
|
|
| is_admin | A boolean if the user is an admin. |
|
2023-08-18 21:49:41 +00:00
|
|
|
### 400 - Error: Bad Request
|
|
|
|
The request was malformed.
|
2023-08-18 16:05:12 +00:00
|
|
|
### 403 - Error: Forbidden
|
|
|
|
Blocked for security reasons.
|
|
|
|
### 404 - Error: Not Found
|
|
|
|
The user wasn't found.
|