Update user and community api
This commit is contained in:
parent
ea8c175f75
commit
7400c5335d
2 changed files with 14 additions and 6 deletions
|
|
@ -36,7 +36,8 @@ Creates a new community and returns it
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string",
|
"description": "string",
|
||||||
"ownerId": "string"
|
"ownerId": "string",
|
||||||
|
"creationDate": "number"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -61,7 +62,9 @@ Updates a community with id = {id}
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string",
|
||||||
"description": "string"
|
"description": "string",
|
||||||
|
"ownerId": "string",
|
||||||
|
"creationDate": "number"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -58,7 +58,9 @@ Creates a new user and returns it
|
||||||
"username": "string",
|
"username": "string",
|
||||||
"email": "string",
|
"email": "string",
|
||||||
"description": "string",
|
"description": "string",
|
||||||
"admin": "boolean"
|
"admin": "boolean",
|
||||||
|
"registerDate": "number",
|
||||||
|
"lastLogin": "number"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -82,8 +84,12 @@ Updates a user with id = {id}
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
|
"username": "string",
|
||||||
"email": "string",
|
"email": "string",
|
||||||
"description": "string"
|
"description": "string",
|
||||||
|
"admin": "boolean",
|
||||||
|
"registerDate": "number",
|
||||||
|
"lastLogin": "number"
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
@ -135,8 +141,7 @@ Returns all communities for a user with id = {id}
|
||||||
"communities": [
|
"communities": [
|
||||||
{
|
{
|
||||||
"id": "string",
|
"id": "string",
|
||||||
"name": "string",
|
"name": "string"
|
||||||
"description": "string"
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue