Compare commits
No commits in common. "df2b2a42479fd4e7bec672cd6767b2a8e3ef8f82711b98dc9aba3ec266fce44b" and "91e22ed95d86e5a7b92335ac5bf0f0797993fd15aab6e95e1b1cfefcfb8b2ee9" have entirely different histories.
df2b2a4247
...
91e22ed95d
8 changed files with 17 additions and 173 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
0.3.3
|
||||
0.3.1
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
{
|
||||
"username": "string",
|
||||
"password": "string",
|
||||
"email": "string?"
|
||||
"email": "string"
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -18,7 +18,7 @@ Registers a new user
|
|||
{
|
||||
"id": "string",
|
||||
"username": "string",
|
||||
"registerDate": "number"
|
||||
"registerDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ Returns a channel with id = {id}
|
|||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string",
|
||||
"creationDate": "number"
|
||||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -39,42 +39,3 @@ Creates a new channel and returns it
|
|||
"communityId": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/channel/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "string?"
|
||||
}
|
||||
```
|
||||
|
||||
Updates a channel with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## DELETE /api/v1/channel/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
Removes a channel with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"communityId": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Returns a community with id = {id}
|
|||
"name": "string",
|
||||
"description": "string",
|
||||
"ownerId": "string",
|
||||
"creationDate": "number"
|
||||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -65,20 +65,6 @@ Updates a community with id = {id}
|
|||
}
|
||||
```
|
||||
|
||||
## DELETE /api/v1/community/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
Removes a community with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## GET /api/v1/community/{id}/members
|
||||
|
||||
_Requires an authorization header_
|
||||
|
|
|
|||
|
|
@ -8,13 +8,13 @@ Returns an invite with id = {id}
|
|||
{
|
||||
"id": "string",
|
||||
"communityId": "string",
|
||||
"valid": "boolean",
|
||||
"unlimitedInvites": "boolean",
|
||||
"hasExpiration": "boolean",
|
||||
"totalInvites": "number",
|
||||
"remainingInvites": "number",
|
||||
"creationDate": "number",
|
||||
"expirationDate": "number"
|
||||
"valid": true,
|
||||
"unlimitedInvites": false,
|
||||
"hasExpiration": false,
|
||||
"totalInvites": 0,
|
||||
"remainingInvites": 0,
|
||||
"creationDate": 0,
|
||||
"expirationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -11,25 +11,7 @@ Returns a role with id = {id}
|
|||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string",
|
||||
"creationDate": "number"
|
||||
}
|
||||
```
|
||||
|
||||
## GET /api/v1/role/{id}/permissions
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
Returns a role with id = {id} and permissions
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string",
|
||||
"permissions": "string[]".
|
||||
"creationDate": "number"
|
||||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -59,32 +41,6 @@ Creates a new role and returns it
|
|||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/role/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"name": "string?",
|
||||
"permissions": "string[]?"
|
||||
}
|
||||
```
|
||||
|
||||
Updates a role with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"communityId": "string",
|
||||
"permissions": "string[]"
|
||||
}
|
||||
```
|
||||
|
||||
## POST /api/v1/role/{id}/assign
|
||||
|
||||
_Requires an authorization header_
|
||||
|
|
@ -134,18 +90,3 @@ Unassigns a role from a user
|
|||
"userId": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## DELETE /api/v1/role/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
Removes a role with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"communityId": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ Returns a session with id = {id}
|
|||
{
|
||||
"id": "string",
|
||||
"userId": "string",
|
||||
"creationDate": "number"
|
||||
"creationDate": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
|
|||
|
|
@ -12,39 +12,9 @@ Returns a user with id = {id}
|
|||
"username": "string",
|
||||
"email": "string",
|
||||
"description": "string",
|
||||
"admin": "boolean",
|
||||
"registerDate": "number",
|
||||
"lastLogin": "number"
|
||||
}
|
||||
```
|
||||
|
||||
## POST /api/v1/user
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"username": "string",
|
||||
"password": "string",
|
||||
"email": "string?",
|
||||
"description": "string?",
|
||||
"admin": "boolean?"
|
||||
}
|
||||
```
|
||||
|
||||
Creates a new user and returns it
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"username": "string",
|
||||
"email": "string",
|
||||
"description": "string",
|
||||
"admin": "boolean"
|
||||
"admin": false,
|
||||
"registerDate": 0,
|
||||
"lastLogin": 0
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -73,20 +43,6 @@ Updates a user with id = {id}
|
|||
}
|
||||
```
|
||||
|
||||
## DELETE /api/v1/user/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
Removes a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## GET /api/v1/user/{id}/sessions
|
||||
|
||||
_Requires an authorization header_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue