Skip to content
Snippets Groups Projects

Resolve "Write API documentation"

Merged Arie Peterson requested to merge 2-write-api-documentation into master
All threads resolved!
1 file
+ 4
4
Compare changes
  • Side-by-side
  • Inline
@@ -31,12 +31,12 @@ Encryption keys
@@ -31,12 +31,12 @@ Encryption keys
``GET /encryption/keys``
``GET /encryption/keys``
List luks password slots
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
Add/change a luks slot to a new password. {slot} corresponds to a slot id
listed by ``GET /encryption/keys``.
listed by ``GET /encryption/keys``.
Post data: ``{"password": password, "new-password": new-password}``
Post data: ``{"password": password, "new-password": new-password}``
``DELETE /encryption/keys/{slot}``
``DELETE /encryption/keys/{slot-id}``
Delete a password from a luks slot
Delete a password from a luks slot
SSH keys with access to the initrd:
SSH keys with access to the initrd:
@@ -47,10 +47,10 @@ 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
Add a key to the authorized_keys file
Post data: ``{"ssh-key": ssh-key}``
Post data: ``{"ssh-key": ssh-key}``
``PUT /ssh/keys/{id}``
``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}``
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
Delete the key with id {key} from the autorized_keys file
Loading