Compare commits
No commits in common. "bb7291520198160635f3473271d7fc307d023990" and "289110128608e9e17f297d7f8a16e6f73c516d84" have entirely different histories.
bb72915201
...
2891101286
2 changed files with 2 additions and 36 deletions
|
@ -1,34 +0,0 @@
|
|||
POST /v1/friend-request
|
||||
|
||||
---
|
||||
|
||||
Sends a friend request to the given user.
|
||||
|
||||
---
|
||||
|
||||
## Request
|
||||
|
||||
|Name|Type|Description|
|
||||
|-|-|-|
|
||||
|access_token|string|**Required**: The user's auth token|
|
||||
|identifier|string|**Required**: The gorb ID of the user they want to friend|
|
||||
|message|string|A message to send along with the friend request, for example to find to tell them who you are|
|
||||
|
||||
```json
|
||||
{
|
||||
"access_token": "gwLhWXD9wrqL3DwxXZ0VHUeOjr8am1yO",
|
||||
"identifier": "@radial_4740:gorb.app",
|
||||
"message": "Heyo, Kira here"
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Responses
|
||||
|
||||
|Status|Description|
|
||||
|-|-|
|
||||
|200|Friend request sucessfully sent|
|
||||
|400|The post request included poorly formated data|
|
||||
|401|The recipient is not accepting friend requests from the sender at the moment|
|
||||
|403|Invalid access token|
|
|
@ -32,7 +32,7 @@ Registers the user, and issues an access token for future requests.
|
|||
| ------ | ----------------------------------------------------------------------------------------------------------------------------- |
|
||||
| 200 | Registration successful |
|
||||
| 400 | The post request included poorly formated data |
|
||||
| 403 | Signups are disabled, gorb ID not available, email already in use, or password doesn't meet the minimum security requirements |
|
||||
| 401 | Signups are disabled, gorb ID not available, email already in use, or password doesn't meet the minimum security requirements |
|
||||
|
||||
---
|
||||
|
||||
|
@ -55,7 +55,7 @@ Registers the user, and issues an access token for future requests.
|
|||
|
||||
---
|
||||
|
||||
### 403
|
||||
### 401
|
||||
|
||||
| Name | Type | Description |
|
||||
| --------------------------- | ---- | ------------------------------------------------------------------------------ |
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue