Skip to content

[6.x] REST API: ping and sites endpoints - #15317

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

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

Conversation

@jackmcdade

@jackmcdade jackmcdade commented Sep 1, 2026

Copy link
Copy Markdown
Member

Summary

  • Add GET /api/ping ({ "ping": "pong" }) when the Content API is enabled.
  • Add GET /api/sites (handle, name, locale, short_locale, url), gated by resources.sites (off by default).

Bottom of the REST API completeness stack.

Test plan

  • GET /api/ping returns pong
  • GET /api/sites is 404 until statamic.api.resources.sites is true
  • Enabled sites match GraphQL site fields
  • Existing collection/entry routes still work

@jackmcdade jackmcdade changed the title feature/rest api sites [6.x] REST API: ping and sites endpoints Sep 1, 2026
jackmcdade and others added 2 commits August 31, 2026 20:16
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@jackmcdade
jackmcdade force-pushed the feature/rest-api-sites branch from 6fc130b to ba357a4 Compare September 1, 2026 00:16
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