Skip to content

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

Merged
jasonvarga merged 2 commits into
6.xfrom
feature/rest-api-sites
Sep 1, 2026
Merged

[6.x] REST API: ping and sites endpoints#15317
jasonvarga merged 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
jackmcdade force-pushed the feature/rest-api-sites branch from 6fc130b to ba357a4 Compare September 1, 2026 00:16
jackmcdade and others added 2 commits September 1, 2026 10:22
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 ba357a4 to e0d3bfa Compare September 1, 2026 14:24
@jasonvarga
jasonvarga merged commit fd2344f into 6.x Sep 1, 2026
64 checks passed
@jasonvarga
jasonvarga deleted the feature/rest-api-sites branch September 1, 2026 15:11
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.

2 participants