Skip to content

Commit

Permalink
feat: update nethsm api client
Browse files Browse the repository at this point in the history
  • Loading branch information
nponsard committed Sep 19, 2023
1 parent 3e684ef commit ebb5bf1
Show file tree
Hide file tree
Showing 1,321 changed files with 35,950 additions and 52,301 deletions.
13 changes: 13 additions & 0 deletions docs/developer-guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,16 @@ Then, run the generation script, docker is required:
make nethsm-client
Be sure to run the linter, tests and check that everything is working as expected after the update.

Custom functions
~~~~~~~~~~~~~~~~

The generator doesn't support upload of binary files and custom ``Content-Type`` headers (fails to serialize).
To work around this, some functions are written manually, using ``NetHSM.request()`` to send the request.

The current list of such functions is:

- ``NetHSM.restore()`` : ``/system/restore``
- ``NetHSM.set_key_certificate()`` : ``/keys/{KeyID}/cert``
- ``NetHSM.set_certificate()`` : ``/config/tls/cert.pem``
- ``NetHSM.update()`` : ``/system/update``
Loading

0 comments on commit ebb5bf1

Please sign in to comment.