docs: update design notes
This commit is contained in:
parent
275590709a
commit
943bff4b3d
33
DESIGN.md
33
DESIGN.md
@ -21,11 +21,20 @@ Resource reference paths are rooted at `/api/v1/ref/<path>`.
|
||||
|
||||
```json
|
||||
{
|
||||
"objectId": <content-hash>,
|
||||
"objectId": <merkle-hash>,
|
||||
"content_address": <content-hash>,
|
||||
"path": "/path/name0",
|
||||
"dependents": [
|
||||
{ "path": "path/name1", "objectId": <content-hash>, content: <payload> },
|
||||
{ "path": "path/name2", "objectId": <content-hash>, content: <payload> }
|
||||
{
|
||||
"path": "path/name1",
|
||||
"content_address": <content-hash>,
|
||||
"objectId": <merkle-hash>, content: <payload>
|
||||
},
|
||||
{
|
||||
"path": "path/name2",
|
||||
"content_address": <content-hash>,
|
||||
"objectId": <merkle-hash>, content: <payload>
|
||||
}
|
||||
],
|
||||
}
|
||||
```
|
||||
@ -49,17 +58,25 @@ content key.
|
||||
|
||||
```json
|
||||
{
|
||||
"objectId": <content-hash>,
|
||||
"objectId": <merkle-hash>,
|
||||
"path": "/path/name0",
|
||||
"dependents": [
|
||||
{
|
||||
"objectId": <content-hash>,
|
||||
"objectId": <merkle-hash>,
|
||||
"path": "path/name1",
|
||||
"content": {
|
||||
"objectId": <content-hash>,
|
||||
"objectId": <merkle-hash>,
|
||||
"dependents": [
|
||||
{ "path": "path/name1", "objectId": <content-hash>, content: <payload> },
|
||||
{ "path": "path/name2", "objectId": <content-hash>, content: <payload> }
|
||||
{
|
||||
"path": "path/name1",
|
||||
"content_address": <content-hash>,
|
||||
"objectId": <merkle-hash>, content: <payload>
|
||||
},
|
||||
{
|
||||
"path": "path/name2",
|
||||
"content_address": <content-hash>,
|
||||
"objectId": <merkle-hash>, content: <payload>
|
||||
}
|
||||
],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user