upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/96.md
diff options
context:
space:
mode:
authorkieran <kieran@harkin.me>2024-05-29 14:26:00 +0100
committerkieran <kieran@harkin.me>2024-05-29 14:26:00 +0100
commit7bf5e327f7c0fef06173b10c3300767acd20d884 (patch)
treeb773a327b3d002205c17037cad8894cc3975c0b9 /96.md
parent17593a41ab7ca51305db07cbfe1866f88e790206 (diff)
update list response
Diffstat (limited to '96.md')
-rw-r--r--96.md29
1 files changed, 16 insertions, 13 deletions
diff --git a/96.md b/96.md
index c8b3170..2f25351 100644
--- a/96.md
+++ b/96.md
@@ -286,26 +286,29 @@ Returns a list of files linked to the authenticated users pubkey.
286Example Response: 286Example Response:
287 287
288```js 288```js
289[ 289{
290 { 290 "count": 1, // server page size, eg. max(1, min(server_max_page_size, arg_count))
291 "id": "<sha256-hash>", 291 "total": 1, // total number of files
292 "nip94_event": { 292 "page": 0, // the current page number
293 "files": [
294 {
293 "tags": [ 295 "tags": [
296 ["ox": "719171db19525d9d08dd69cb716a18158a249b7b3b3ec4bbdec5698dca104b7b"],
297 ["x": "5d2899290e0e69bcd809949ee516a4a1597205390878f780c098707a7f18e3df"],
294 ["size", "123456"], 298 ["size", "123456"],
295 ["alt", "a meme that makes you laugh"], 299 ["alt", "a meme that makes you laugh"],
296 ["expiration", "1715691139"] 300 ["expiration", "1715691139"],
297 // ...other metadata 301 // ...other metadata
298 ] 302 ]
299 "content": "haha funny meme" // caption 303 "content": "haha funny meme", // caption
300 } 304 "created_at": 1715691130 // upload timestmap
301 }, 305 },
302 ... 306 ...
303] 307 ]
308}
304``` 309```
305 310
306`<sha256-hash>` is the **original hash**, ie. `ox` 311`files` contains an array of NIP-94 events
307
308`nip94_event` is the same as in the upload result.
309 312
310### Query args 313### Query args
311 314