Skip to content

docs: move the API reference to docs/api.md and correct environment variables - #100

Merged
onamfc merged 2 commits into
mainfrom
docs/api-reference
Nov 5, 2026
Merged

onamfc merged 2 commits into
mainfrom
docs/api-reference

Conversation

@onamfc

@onamfc onamfc commented Nov 5, 2026

Copy link
Copy Markdown
Member

Summary

  • API reference: moves it from the README to docs/api.md, leaving a link in the README. Adds the /api/templates routes and /api/sdk/v1/resolve/:templateSlug/:shortCode, which were missing.
  • SHORTLINK_DOMAIN: replaces the unread SERVICE_DOMAIN in .env.example. docs/configuration.md now shows the value with its scheme, because the value is used as the start of the QR code URL. Without a scheme, the encoded URL has none either.
  • Removed settings: JWT_SECRET and the commented SMTP settings, which Core doesn't read.
  • TRUST_EDGE_BOT_HEADER: now documented in docs/configuration.md.
  • docker-compose.yml: passes SHORTLINK_DOMAIN and TRUST_EDGE_BOT_HEADER through, so setting them in .env reaches the container. An unset value behaves as before.
  • llms.txt: no longer says SHORTLINK_DOMAIN is used in SDK responses. Only the QR route reads it.

Testing

docker compose config -q passes. No application code changed.

The docs site has no API page for QR codes, webhooks, SDK endpoints, health or debug routes, so the list moves to docs/ rather than being cut. Adds the template routes and the template-path resolve route, which were missing.
Replace SERVICE_DOMAIN with SHORTLINK_DOMAIN, the variable Core reads for QR code URLs, and show its value with the scheme, because the value is used as the start of the URL. Remove JWT_SECRET and the SMTP settings, which Core does not read, and document TRUST_EDGE_BOT_HEADER.

Pass SHORTLINK_DOMAIN and TRUST_EDGE_BOT_HEADER through docker-compose.yml so that setting them in .env reaches the container.
@codecov

codecov Bot commented Nov 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@onamfc
onamfc merged commit 1c4b418 into main Nov 5, 2026
14 checks passed
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 5, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant