mirror of
https://github.com/Dasemu/Synapse.git
synced 2026-11-29 00:36:22 +00:00
Initial import of LogDarioSeq baseline
Establishes version control for the personal Logseq DB fork before starting the server-client architecture migration and domain features described in docs/agent-guide and the approved implementation plan. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
commit
40631362b3
2016 files changed
+543898
No files matched your search
+36
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
BASE_URL=${BASE_URL:-"http://127.0.0.1:8787"}
|
||||
GRAPH_UUID=${GRAPH_UUID:-"00000000-0000-0000-0000-000000000000"}
|
||||
PAGE_UUID=${PAGE_UUID:-"00000000-0000-0000-0000-000000000001"}
|
||||
|
||||
META=$(cat <<JSON
|
||||
{"page-uuid":"${PAGE_UUID}","block-count":1,"schema-version":"0","publish/format":"transit","publish/compression":"none","publish/content-hash":"dev","publish/content-length":1,"publish/graph":"${GRAPH_UUID}","publish/created-at":0}
|
||||
JSON
|
||||
)
|
||||
|
||||
PAYLOAD="{}"
|
||||
|
||||
curl -sS -X POST "${BASE_URL}/pages" \
|
||||
-H "content-type: application/transit+json" \
|
||||
-H "x-publish-meta: ${META}" \
|
||||
--data-binary "${PAYLOAD}"
|
||||
|
||||
echo
|
||||
|
||||
curl -sS "${BASE_URL}/pages/${GRAPH_UUID}/${PAGE_UUID}"
|
||||
|
||||
echo
|
||||
|
||||
curl -sS "${BASE_URL}/pages/${GRAPH_UUID}/${PAGE_UUID}/transit"
|
||||
|
||||
echo
|
||||
|
||||
curl -sS "${BASE_URL}/pages"
|
||||
|
||||
echo
|
||||
|
||||
curl -sS "${BASE_URL}/p/${GRAPH_UUID}/${PAGE_UUID}"
|
||||
|
||||
echo
|
||||
Reference in new issue
Block a user