diff options
Diffstat (limited to 'api-conventions.md')
-rw-r--r-- | api-conventions.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/api-conventions.md b/api-conventions.md index 44e78b1..eb5e6be 100644 --- a/api-conventions.md +++ b/api-conventions.md @@ -50,7 +50,7 @@ A singleton which is owned by `:resource`. OR -A named action to be completed asyncronously. +A named action to be completed asynchronously. ### /api/:resource/:id/:subresource/:id @@ -117,7 +117,7 @@ Errors are returned with a consistent response body: "errors": [ { "field": "example", - "reason": "example is requried" + "reason": "example is required" } ] } @@ -199,7 +199,7 @@ that occurred, e.g. `profile:update`. The `X-Payload-Signature` and `X-Payload-Nonce` headers can be used to verify the authenticity of the webhook payload. Concatenate the request body with the nonce (treat the nonce as an ASCII-encoded string) and use it to verify the -base64-encoded Ed25519 siganture given by the `X-Payload-Signature` header. The +base64-encoded Ed25519 signature given by the `X-Payload-Signature` header. The public key (also base64 encoded) is `uX7KWyyDNMaBma4aVbJ/cbUQpdjqczuCyK/HxzV/u+4=`. Here's an example of verifying the payload in Python: |