api/docs/project/info.md

30 lines
1.2 KiB
Markdown
Raw Permalink Normal View History

# `/project/info` - GET
Returns the list of public projects the user is part of.
## Urlencoded Parameters
You have to set one parameter.
Setting none or two parameters will result in a _400 Bad Request_ Response.
2023-09-09 23:53:22 +00:00
| Parameter | Description |
|-----------|--------------------|
| name | The projects name. |
| id | The projects id. |
## Responses
### 200 - Success
__Content - JSON:__
2023-09-09 23:53:22 +00:00
| Field | Description |
|-------------|---------------------------------------------------------------------------|
| id | The projects unique id. |
| name | The projects unique name. |
| description | The projects description. |
| created | The datetime when the project was created. Represented as UNIX timestamp. |
2023-09-09 23:53:22 +00:00
| members | A list of (username, userid, flags) pairs. |
### 400 - Error: Bad Request
The request was malformed.
### 403 - Error: Forbidden
Blocked for security reasons.
### 404 - Error: Not Found
The project wasn't found.