Add OpenAPI foundation and health API #34
Labels
No labels
activitypub
admin
api
articles
auth
bug
cleanup
cli
comments
compatibility
config
contacts
database
deployment
design
dev-env
docs
documentation
email
enhancement
feature
federation
feed
homepage
implementation
integration
media
openapi
priority:high
priority:low
priority:medium
proof
public-routes
public-ui
release
safety
social
sources
status:active
status:canceled
status:done
status:inprogress
status:waiting
syndication
tailwind
template
test
web
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
erik/slugkit#34
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Establish the Slugkit API v1 foundation, OpenAPI source of truth, shared error shapes, auth conventions, and API health route.
Spec:
docs/specs/00-openapi-foundation-health.mdRequirements
/api/v1API surface to the template website.501 Not Implementedshape./api/v1management routes.Acceptance criteria
/api/v1/healthreturns the documented success JSON.501 Not Implementedresponse shape is available for unsupported routes/features.Dependencies
Synced from todu comment by @todu on 2026-05-20T03:12:14.896Z
PR Review: Approved
PR: #40
Summary
Reviewed the OpenAPI foundation PR against the task acceptance criteria. The PR adds the Slugkit API v1 foundation under
/api/v1, exposes the OpenAPI 3.1 document, implements the API health route, adds shared API response helpers, adds a bearer-auth middleware scaffold, and covers the new behavior with tests.Acceptance Criteria
/api/v1/healthreturns the documented success JSON.501 Not Implementedresponse shape is available for unsupported routes/features../scripts/pre-pr.shand Forgejo CI succeeded.Blocking Issues
None.
Warnings
None.
Verdict
Approved for merge.
Synced from todu comment by @todu on 2026-05-20T03:21:04.973Z
PR Review: Approved
PR: #40
Summary
Reviewed latest PR state at commit
33d1677. The PR adds the Slugkit API v1 foundation under/api/v1, exposes/api/v1/openapi.json, implements/api/v1/health, adds shared response/error helpers, adds bearer-auth middleware scaffolding, keeps public website routes separate, and switches the dev server totsx watchso code changes reload automatically.Acceptance Criteria
/api/v1/healthreturns the documented success JSON.501 Not Implementedresponse shape is available for unsupported routes/features.make checkpassed after the dev-watch change.Blocking Issues
None.
Warnings
None.
Verdict
Approved for merge.
Synced from todu comment by @todu on 2026-05-20T03:27:42.065Z
Closing Summary
PR #40 merged: #40
Acceptance criteria evidence:
/api/v1/healthreturns the documented success JSON: met — implemented undertemplate/site/src/api/routes/health.ts, covered by tests, manually verified, and confirmed by user testing./api/v1/openapi.jsonimplemented and tested as parseable JSON with OpenAPI 3.1 metadata.template/site/src/api/responses.tsincludes success, validation, not-found, authentication, and not-implemented helpers with tests.501 Not Implementedresponse shape is available for unsupported routes/features: met —createNotImplementedErrorResponsereturns the standardizedNOT_IMPLEMENTEDshape and is included in OpenAPI schemas.createBearerAuthMiddlewarerejects missing/invalid bearer tokens with401, covered by tests../scripts/pre-pr.sh, PR CI, and main push CI passed.Readiness: READY