Update README to include documentation on create user API

This commit is contained in:
J Delaney
2015-10-09 13:06:32 -07:00
parent f3c8ec98e6
commit 51f74f29e2

View File

@@ -72,6 +72,7 @@ format is POSTed and JSON is returned.
- `/create`: Create the first admin account.
- `/delegate`: Delegate a password to Red October
- `/create-user`: Create a user
- `/modify`: Modify permissions
- `/encrypt`: Encrypt
- `/decrypt`: Decrypt
@@ -109,6 +110,16 @@ Example query:
$ curl --cacert cert/server.crt https://localhost:8080/delegate \
-d '{"Name":"Dodo","Password":"Dodgson","Time":"2h34m","Uses":3}'
{"Status":"ok"}
### Create User
Create Users creates a new user account.
Example query:
$ curl --cacert cert/server.crt https://localhost:8080/create-user \
-d '{"Name":"Bill","Password":"Lizard"}'
{"Status":"ok"}
### Summary