Skip to content

Commit

Permalink
Fix keyring doc method wording
Browse files Browse the repository at this point in the history
  • Loading branch information
kyhavlov committed Nov 23, 2016
1 parent 6bd65c6 commit dcdadd0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion api/operator.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ type RaftConfiguration struct {

// keyringRequest is used for performing Keyring operations
type keyringRequest struct {
Key string `json:",omitempty"`
Key string
}

// KeyringResponse is returned when listing the gossip encryption keys
Expand Down
6 changes: 3 additions & 3 deletions website/source/docs/agent/http/operator.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ Using the `POST` method, this endpoint will install a new gossip encryption key
into the cluster. There is more information on gossip encryption available
[here](/docs/agent/encryption.html#gossip-encryption).

The register endpoint expects a JSON request body to be PUT. The request
The POST method expects a JSON request body to be submitted. The request
body must look like:

```javascript
Expand All @@ -216,7 +216,7 @@ key. The key must already be installed before this operation can succeed. There
is more information on gossip encryption available
[here](/docs/agent/encryption.html#gossip-encryption).

The register endpoint expects a JSON request body to be PUT. The request
The PUT method expects a JSON request body to be submitted. The request
body must look like:

```javascript
Expand All @@ -240,7 +240,7 @@ the cluster. This operation may only be performed on keys which are not currentl
the primary key. There is more information on gossip encryption available
[here](/docs/agent/encryption.html#gossip-encryption).

The register endpoint expects a JSON request body to be PUT. The request
The DELETE method expects a JSON request body to be submitted. The request
body must look like:

```javascript
Expand Down

0 comments on commit dcdadd0

Please sign in to comment.