ENTRY

[ESC]
15d167 words1 save1 reply

Cyberspace API v0.3.7

API 0.3.7

Updates related to entries now having optional titles and URL slugs. More details in the docs.

  • Entries
    • POST /v1/posts accepts optional title (max 100) and slug (max 60, lowercase [a-z0-9-], unique per author). Slug is auto-generated server-side from title/content/attachments when omitted; collisions are auto-suffixed (-2, -3, …). Reserved slugs (blog, jukebox, public, replies, index, edit, new, admin, and _-prefixed) are rejected.
    • Response now includes the resolved slug (and title if set) so callers know what was stored.
    • New endpoint GET /v1/users/:username/posts/:slug resolves an entry by its per-author URL slug. The existing GET /v1/posts/:id remains doc-ID-only.
  • Replies
    • Created reply docs now carry parentPostSlug denormalized from the parent post, so reply share links can route via /{username}/{slug} without an extra fetch.
  • Notifications
    • Post-create (follower), reply, and bookmark notifications now denormalize metadata.postSlug (and metadata.authorUsername where applicable) so deep-links route via pretty slug URLs without an extra fetch on click.
  • Misc
    • Changed a detail about username checks on signup
1 reply

Log in to read the replies and join the conversation