pinakes/docs/api/notes.md
NotAShelf 9e5eb41d39
nix: set up project-wide formatter
Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I4806c58aa0a17f504c9312723ad770166a6a6964
2026-03-22 23:58:28 +03:00

3 KiB
Vendored

Notes

Markdown notes link graph

Endpoints

Get backlinks (incoming links) to a media item.

GET /api/v1/media/{id}/backlinks

Authentication: Required (Bearer JWT)

Parameters

Name In Required Description
id path Yes Media item ID

Responses

Status Description
200 Backlinks
401 Unauthorized
404 Not found
500 Internal server error

Get outgoing links from a media item.

GET /api/v1/media/{id}/outgoing-links

Authentication: Required (Bearer JWT)

Parameters

Name In Required Description
id path Yes Media item ID

Responses

Status Description
200 Outgoing links
401 Unauthorized
404 Not found
500 Internal server error

POST /api/v1/media/{id}/reindex-links

Re-extract links from a media item.

POST /api/v1/media/{id}/reindex-links

Authentication: Required (Bearer JWT)

Parameters

Name In Required Description
id path Yes Media item ID

Responses

Status Description
200 Links reindexed
401 Unauthorized
404 Not found
500 Internal server error

GET /api/v1/notes/graph

Get graph data for visualization.

GET /api/v1/notes/graph?center={uuid}&depth={n}

Authentication: Required (Bearer JWT)

Parameters

Name In Required Description
center query No Center node ID
depth query No Traversal depth (max 5, default 2)

Responses

Status Description
200 Graph data
401 Unauthorized
500 Internal server error

POST /api/v1/notes/resolve-links

Resolve all unresolved links in the database.

POST /api/v1/notes/resolve-links

Authentication: Required (Bearer JWT)

Responses

Status Description
200 Links resolved
401 Unauthorized
500 Internal server error

GET /api/v1/notes/unresolved-count

Get count of unresolved links.

GET /api/v1/notes/unresolved-count

Authentication: Required (Bearer JWT)

Responses

Status Description
200 Unresolved link count
401 Unauthorized
500 Internal server error