server/api.md: Fix broken API docs

This commit is contained in:
ReAnzu 2018-03-21 20:52:48 -05:00
parent 70e81bdce9
commit 2f857f00b2

14
API.md
View file

@ -58,10 +58,10 @@
- [Getting user](#getting-user) - [Getting user](#getting-user)
- [Deleting user](#deleting-user) - [Deleting user](#deleting-user)
- User Tokens - User Tokens
- [Listing tokens](#listing-tokens) - [Listing user tokens](#listing-user-tokens)
- [Creating token](#creating-token) - [Creating user token](#creating-user-token)
- [Updating token](#updating-token) - [Updating user token](#updating-user-token)
- [Deleting token](#deleting-token) - [Deleting user token](#deleting-user-token)
- Password reset - Password reset
- [Password reset - step 1: mail request](#password-reset---step-2-confirmation) - [Password reset - step 1: mail request](#password-reset---step-2-confirmation)
- [Password reset - step 2: confirmation](#password-reset---step-2-confirmation) - [Password reset - step 2: confirmation](#password-reset---step-2-confirmation)
@ -1513,7 +1513,7 @@ data.
Searches for user tokens for the given user. Searches for user tokens for the given user.
## Creating a user token ## Creating user token
- **Request** - **Request**
`POST /user-token/<user_name>` `POST /user-token/<user_name>`
@ -1541,7 +1541,7 @@ data.
Creates a new user token that can be used for authentication of API Creates a new user token that can be used for authentication of API
endpoints instead of a password. endpoints instead of a password.
## Updating a user token ## Updating user token
- **Request** - **Request**
`PUT /user-token/<user_name>/<token>` `PUT /user-token/<user_name>/<token>`
@ -1573,7 +1573,7 @@ data.
except the [`version`](#versioning) are optional - update concerns only except the [`version`](#versioning) are optional - update concerns only
provided fields. provided fields.
## Deleting a user token ## Deleting user token
- **Request** - **Request**
`DELETE /user-token/<user_name>/<token>` `DELETE /user-token/<user_name>/<token>`