docs: improve some READMEs
This commit is contained in:
parent
6f69695758
commit
a4a750b35c
3 changed files with 49 additions and 2 deletions
27
public/api/users/README.md
Normal file
27
public/api/users/README.md
Normal file
|
@ -0,0 +1,27 @@
|
|||
# /api/users
|
||||
|
||||
Interact with users.
|
||||
|
||||
## POST /api/users
|
||||
|
||||
Create a new user.
|
||||
|
||||
```
|
||||
{
|
||||
// set the user's username
|
||||
username: string;
|
||||
|
||||
// set the user's password, will be hashed and discarded server-side
|
||||
password?: string;
|
||||
|
||||
// can send an already-hashed password if we want to keep this client-side
|
||||
// should be a base64-encoded SHA-256 hash of the user's client-entered pw
|
||||
password_hash?: string;
|
||||
}
|
||||
```
|
||||
|
||||
## GET /api/users
|
||||
|
||||
Get users. (admin)
|
||||
|
||||
TODO: document this
|
Loading…
Add table
Add a link
Reference in a new issue