Commit 1da75974 authored by Maarten de Waard's avatar Maarten de Waard 🤘🏻
Browse files

fix api_documentation

parent f811d95f
......@@ -29,9 +29,13 @@ Encryption keys:
``GET /encryption/keys``
List luks password slots
``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 /encryption/keys/``
Add a new password to a new Luks slot.
Post data: ``{"password": password, "new-password": new-password}``
``POST /encryption/keys/{slot-id}``
Change a luks slot's password. {slot} corresponds to a slot id listed by ``GET
/encryption/keys``.
Post data: ``{"password": password, "new-password": new-password}``
``DELETE /encryption/keys/{slot-id}``
......@@ -40,15 +44,15 @@ Encryption keys:
SSH keys with access to the initrd:
``GET /ssh/keys``
List SSH keys in the ``/root/authorized_keys`` file
List SSH keys in the ``/root/.ssh/authorized_keys`` file
``POST/ssh/keys``
Add a key to the authorized_keys file
Add a key to the ``authorized_keys`` file
Post data: ``{"ssh-key": ssh-key}``
``PUT /ssh/keys/{key-id}``
Change a key in the authorized_keys file
Change a key in the ``authorized_keys`` file
Post data: ``{"ssh-key": ssh-key}``
``DELETE /ssh/keys/{key-id}``
Delete the key with id {key} from the autorized_keys file
Delete the key with id ``{key-id}`` from the ``authorized_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