Skip to content

Commit

Permalink
Crypto is still in alpha, so the URLs shouldn't point to v1.0 values
Browse files Browse the repository at this point in the history
Signed-off-by: Whit Waldo <[email protected]>
  • Loading branch information
WhitWaldo committed Dec 6, 2024
1 parent 79a5b94 commit 7bc95b5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions daprdocs/content/en/reference/api/cryptography_api.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ This endpoint lets you encrypt a value provided as a byte array using a specifie
### HTTP Request

```
PUT http://localhost:<daprPort>/v1.0/crypto/<crypto-store-name>/encrypt
PUT http://localhost:<daprPort>/v1.0-alpha1/crypto/<crypto-store-name>/encrypt
```

#### URL Parameters
Expand Down Expand Up @@ -59,7 +59,7 @@ returns an array of bytes with the encrypted payload.

### Examples
```shell
curl http://localhost:3500/v1.0/crypto/myAzureKeyVault/encrypt \
curl http://localhost:3500/v1.0-alpha1/crypto/myAzureKeyVault/encrypt \
-X PUT \
-H "dapr-key-name: myCryptoKey" \
-H "dapr-key-wrap-algorithm: aes-gcm" \
Expand All @@ -81,7 +81,7 @@ This endpoint lets you decrypt a value provided as a byte array using a specifie
#### HTTP Request

```
PUT curl http://localhost:3500/v1.0/crypto/<crypto-store-name>/decrypt
PUT curl http://localhost:3500/v1.0-alpha1/crypto/<crypto-store-name>/decrypt
```

#### URL Parameters
Expand Down Expand Up @@ -116,7 +116,7 @@ returns an array of bytes representing the decrypted payload.

### Examples
```bash
curl http://localhost:3500/v1.0/crypto/myAzureKeyVault/decrypt \
curl http://localhost:3500/v1.0-alpha1/crypto/myAzureKeyVault/decrypt \
-X PUT
-H "dapr-key-name: myCryptoKey"\
-H "Content-Type: application/octet-stream" \
Expand Down

0 comments on commit 7bc95b5

Please sign in to comment.