Skip to content

[6.x] Add REST API ping and sites endpoints - #15308

Closed
jackmcdade wants to merge 2 commits into
6.xfrom
feature/rest-api-sites
Closed

[6.x] Add REST API ping and sites endpoints#15308
jackmcdade wants to merge 2 commits into
6.xfrom
feature/rest-api-sites

Conversation

@jackmcdade

Copy link
Copy Markdown
Member

Summary

  • Add GET /api/ping ({ "ping": "pong" }) so the Content API has a health check, matching GraphQL.
  • Add GET /api/sites (GraphQL SiteType fields: handle, name, locale, short_locale, url), gated by resources.sites (default off).

First slice of the REST API completeness stack. Next PR: collection / taxonomy / nav / asset-container metadata.

Test plan

  • GET /api/ping returns { "ping": "pong" } when the API is enabled
  • GET /api/sites is 404 until statamic.api.resources.sites is true
  • Enabled sites match GraphQL site fields (no trailing slash on url)
  • Existing collection/entry API routes still work

Made with Cursor

jackmcdade and others added 2 commits August 29, 2026 22:50
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@jackmcdade jackmcdade closed this Aug 30, 2026
@jackmcdade
jackmcdade deleted the feature/rest-api-sites branch August 30, 2026 03:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant