Formatting; Creation dates
This commit is contained in:
parent
d1685fde77
commit
a85fc8a49d
7 changed files with 94 additions and 41 deletions
|
|
@ -1,5 +1,7 @@
|
|||
## POST /api/v1/auth/register
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"username": "string",
|
||||
|
|
@ -11,6 +13,7 @@
|
|||
Registers a new user
|
||||
|
||||
### Response (success):
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
|
|
@ -20,6 +23,7 @@ Registers a new user
|
|||
```
|
||||
|
||||
### Response (error):
|
||||
|
||||
```json
|
||||
{
|
||||
"error": "user already exists"
|
||||
|
|
@ -29,7 +33,9 @@ Registers a new user
|
|||
---
|
||||
|
||||
## POST /api/v1/auth/login
|
||||
|
||||
### Request:
|
||||
|
||||
```json
|
||||
{
|
||||
"username": "string",
|
||||
|
|
@ -40,6 +46,7 @@ Registers a new user
|
|||
Logs in a user and returns a new session
|
||||
|
||||
### Response (success):
|
||||
|
||||
```json
|
||||
{
|
||||
"id": "string",
|
||||
|
|
@ -49,6 +56,7 @@ Logs in a user and returns a new session
|
|||
```
|
||||
|
||||
### Response (incorrect credentials):
|
||||
|
||||
```json
|
||||
{
|
||||
"ownerId": "string",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue