docs(api): precised return code info
This commit is contained in:
parent
d1b1532f43
commit
e84ec87ea0
20
API.md
20
API.md
|
@ -24,11 +24,11 @@ This verification link will time out after 10 minutes.
|
||||||
#### Responses
|
#### Responses
|
||||||
##### 200 - Success
|
##### 200 - Success
|
||||||
The verification request was sent.
|
The verification request was sent.
|
||||||
##### 400 - Error
|
##### 400 - Error: Bad Request
|
||||||
The request was malformed.
|
The request was malformed.
|
||||||
##### 403 - Error
|
##### 403 - Error: Forbidden
|
||||||
The password is not matching the requirements.
|
The password is not matching the requirements.
|
||||||
##### 409 - Error
|
##### 409 - Error: Conflict
|
||||||
The requested username or email is already taken.
|
The requested username or email is already taken.
|
||||||
|
|
||||||
__Content - JSON:__
|
__Content - JSON:__
|
||||||
|
@ -36,7 +36,7 @@ __Content - JSON:__
|
||||||
|----------|----------------------------------------------------------------------|
|
|----------|----------------------------------------------------------------------|
|
||||||
| conflict | Can be `username` or `email`, depending on what caused the conflict. |
|
| conflict | Can be `username` or `email`, depending on what caused the conflict. |
|
||||||
|
|
||||||
##### 422 - Error
|
##### 422 - Error: Unprocessable Entity
|
||||||
Malformed email address.
|
Malformed email address.
|
||||||
|
|
||||||
### `/account/verify` - POST
|
### `/account/verify` - POST
|
||||||
|
@ -55,9 +55,9 @@ Verifies a requested account.
|
||||||
#### Responses
|
#### Responses
|
||||||
##### 200 - Success
|
##### 200 - Success
|
||||||
The account was verified. You can login now.
|
The account was verified. You can login now.
|
||||||
##### 400 - Error
|
##### 400 - Error: Bad Request
|
||||||
The request was malformed.
|
The request was malformed.
|
||||||
##### 403 - Error
|
##### 403 - Error: Forbidden
|
||||||
The provided token is unknown.
|
The provided token is unknown.
|
||||||
|
|
||||||
### `/account/authenticate` - POST
|
### `/account/authenticate` - POST
|
||||||
|
@ -83,11 +83,11 @@ __Content - JSON:__
|
||||||
|-------|------------------------|
|
|-------|------------------------|
|
||||||
| token | A unique access token. |
|
| token | A unique access token. |
|
||||||
|
|
||||||
##### 400 - Error
|
##### 400 - Error: Bad Request
|
||||||
The request was malformed.
|
The request was malformed.
|
||||||
##### 403 - Error
|
##### 403 - Error: Forbidden
|
||||||
The provided password was wrong.
|
The provided password was wrong.
|
||||||
##### 404 - Error
|
##### 404 - Error: Not Found
|
||||||
The provided username was not found.
|
The provided username was not found.
|
||||||
|
|
||||||
### `/account/delete` - DELETE
|
### `/account/delete` - DELETE
|
||||||
|
@ -101,5 +101,5 @@ Deletes the account.
|
||||||
#### Responses
|
#### Responses
|
||||||
##### 200 - Success
|
##### 200 - Success
|
||||||
The account was deleted.
|
The account was deleted.
|
||||||
##### 403 - Errorpassword was wrong
|
##### 403 - Error: Forbidden
|
||||||
The provided token doesn't allow you to perform this operation.
|
The provided token doesn't allow you to perform this operation.
|
Loading…
Reference in New Issue