Commit 7af2244a authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

use same name for URL parameters

parent 26ae762e
......@@ -31,12 +31,12 @@ Encryption keys
``GET /encryption/keys``
List luks password slots
``POST/PUT /encryption/keys/{slot}``
``POST/PUT /encryption/keys/{slot-id}``
Add/change a luks slot to a new password. {slot} corresponds to a slot id
listed by ``GET /encryption/keys``.
Post data: ``{"password": password, "new-password": new-password}``
``DELETE /encryption/keys/{slot}``
``DELETE /encryption/keys/{slot-id}``
Delete a password from a luks slot
SSH keys with access to the initrd:
......@@ -47,10 +47,10 @@ SSH keys with access to the initrd:
Add a key to the authorized_keys file
Post data: ``{"ssh-key": ssh-key}``
``PUT /ssh/keys/{id}``
``PUT /ssh/keys/{key-id}``
Change a key in the authorized_keys file
Post data: ``{"ssh-key": ssh-key}``
``DELETE /ssh/keys/{key}``
``DELETE /ssh/keys/{key-id}``
Delete the key with id {key} from the autorized_keys file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment