Add OpenAPI foundation and health API #40
No reviewers
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!40
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/task-c272cbda-openapi-health"
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?
Summary
/api/v1routing to the template site./api/v1/healthand/api/v1/openapi.json.Testing
make check./scripts/pre-pr.shAPP_HOST=127.0.0.1 APP_PORT=3100 npm run dev --workspace @slugkit/template-site, then curl/api/v1/healthand parse/api/v1/openapi.jsonTask: #task-c272cbda
PR Review: Approved
Summary
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.
PR Review: Approved
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.