Skip to content

Commit

Permalink
fix: update http put args description
Browse files Browse the repository at this point in the history
  • Loading branch information
vasco-santos committed Apr 8, 2024
1 parent 9bcea77 commit b268fde
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions w3-blob.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

![status:wip](https://img.shields.io/badge/status-wip-orange.svg?style=flat-square)

## Editors

- [Irakli Gozalishvili](https://github.com/gozala)
- [Vasco Santos](https://github.com/vasco-santos)

## Authors

- [Irakli Gozalishvili](https://github.com/gozala)
- [Vasco Santos](https://github.com/vasco-santos)

## Abstract

Expand Down Expand Up @@ -163,6 +167,7 @@ Shows an example receipt for the above `/space/content/add/blob` capability invo
"sub": "did:key:zMh...der", // <-- Ed299.. derived key from content multihash
"args": {
"content": { "/": { "bytes": "mEi...sfKg" } },
// TODO: this should now be updated
"address": { "await/ok": { "/": "bafy...alloc" } },
"_allocate": { "await/ok": { "/": "bafy...alloc" } }
},
Expand Down Expand Up @@ -386,9 +391,17 @@ The subject field SHOULD be [`did:key`] corresponding to the [Ed25519] private k
Metadata MUST contain `keys` field with an object value that contains [`did:key`] subject as key and corresponding private key as bytes as a value.
### Put Blob Address
### Put Blob Body
The `args.body` field MUST be set to the Blob the space is allocated for.
### Put Blob URL
The `args.url` field MUST be set to the HTTP(S) location that can receive blob content via HTTP PUT request.
### Put Blob Headers
Destination address `url` and required `headers` MUST be specified in the arguments.
The `args.url` field MUST be set to the HTTP(S) headers required to send blob content via HTTP PUT request.
### Put Blob Receipt
Expand Down

0 comments on commit b268fde

Please sign in to comment.