Skip to content

Commit

Permalink
feat: update api spec
Browse files Browse the repository at this point in the history
Changes the generator to support binary files in requests and responses.
  • Loading branch information
nponsard committed Sep 28, 2023
1 parent b8b7f86 commit d7992e2
Show file tree
Hide file tree
Showing 8 changed files with 561 additions and 188 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "nethsm-sdk-rs"
version = "0.4.0"
version = "0.5.0"
authors = ["Nitrokey <[email protected]>"]
description = "Rust SDK to communicate with Nitrokey NetHSM"
documentation = "https://docs.nitrokey.com/nethsm/"
Expand Down
10 changes: 5 additions & 5 deletions docs/DefaultApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1213,7 +1213,7 @@ Name | Type | Description | Required | Notes

## system_backup_post

> system_backup_post()
> std::vec::Vec<u8> system_backup_post()

Back up the key store to a backup file.
Expand All @@ -1224,7 +1224,7 @@ This endpoint does not need any parameter.

### Return type

(empty response body)
[**std::vec::Vec<u8>**](std::vec::Vec<u8>.md)

### Authorization

Expand All @@ -1233,7 +1233,7 @@ This endpoint does not need any parameter.
### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: Not defined
- **Accept**: application/octet-stream

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

Expand Down Expand Up @@ -1386,7 +1386,7 @@ Restore the key store and user store from a backup file. If NetHSM is *Unprovisi
Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**backup_passphrase** | **String** | | [required] |
**body** | **String** | | [required] |
**body** | **std::vec::Vec<u8>** | | [required] |
**system_time** | Option<**String**> | | |

### Return type
Expand Down Expand Up @@ -1444,7 +1444,7 @@ Update NetHSM software.

Name | Type | Description | Required | Notes
------------- | ------------- | ------------- | ------------- | -------------
**body** | **String** | | [required] |
**body** | **std::vec::Vec<u8>** | | [required] |

### Return type

Expand Down
Loading

0 comments on commit d7992e2

Please sign in to comment.