update list response

This commit is contained in:
kieran 2024-05-29 14:26:00 +01:00
parent 17593a41ab
commit 7bf5e327f7
Signed by: Kieran
GPG Key ID: DE71CEB3925BE941
1 changed files with 16 additions and 13 deletions

29
96.md
View File

@ -286,26 +286,29 @@ Returns a list of files linked to the authenticated users pubkey.
Example Response:
```js
[
{
"id": "<sha256-hash>",
"nip94_event": {
{
"count": 1, // server page size, eg. max(1, min(server_max_page_size, arg_count))
"total": 1, // total number of files
"page": 0, // the current page number
"files": [
{
"tags": [
["ox": "719171db19525d9d08dd69cb716a18158a249b7b3b3ec4bbdec5698dca104b7b"],
["x": "5d2899290e0e69bcd809949ee516a4a1597205390878f780c098707a7f18e3df"],
["size", "123456"],
["alt", "a meme that makes you laugh"],
["expiration", "1715691139"]
["expiration", "1715691139"],
// ...other metadata
]
"content": "haha funny meme" // caption
}
},
...
]
"content": "haha funny meme", // caption
"created_at": 1715691130 // upload timestmap
},
...
]
}
```
`<sha256-hash>` is the **original hash**, ie. `ox`
`nip94_event` is the same as in the upload result.
`files` contains an array of NIP-94 events
### Query args