Rework patches
This commit is contained in:
parent
ffeec5108d
commit
6129941676
2 changed files with 10 additions and 52 deletions
|
|
@ -13,7 +13,7 @@ Returns a community with id = {id}
|
|||
}
|
||||
```
|
||||
|
||||
## UPDATE /api/v1/community/{id}/name
|
||||
## PATCH /api/v1/community/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
|
|
@ -21,40 +21,19 @@ _Requires an authorization header_
|
|||
|
||||
```json
|
||||
{
|
||||
"name": "string"
|
||||
"name": "string?",
|
||||
"description": "string?"
|
||||
}
|
||||
```
|
||||
|
||||
Updates name for a community with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/community/{id}/description
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "string"
|
||||
}
|
||||
```
|
||||
|
||||
Updates description for a community with id = {id}
|
||||
Updates a community with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"name": "string",
|
||||
"description": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@ Returns all sessions for a user with id = {id}
|
|||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/user/{id}/email
|
||||
## PATCH /api/v1/user/{id}
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
|
|
@ -45,40 +45,19 @@ _Requires an authorization header_
|
|||
|
||||
```json
|
||||
{
|
||||
"email": "string"
|
||||
"email": "string?",
|
||||
"description": "string?"
|
||||
}
|
||||
```
|
||||
|
||||
Updates email for a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"email": "string"
|
||||
}
|
||||
```
|
||||
|
||||
## PATCH /api/v1/user/{id}/description
|
||||
|
||||
_Requires an authorization header_
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"description": "string"
|
||||
}
|
||||
```
|
||||
|
||||
Updates description for a user with id = {id}
|
||||
Updates a user with id = {id}
|
||||
|
||||
### Response:
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
"email": "string",
|
||||
"description": "string"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue