mirror of
https://github.com/discourse/discourse.git
synced 2026-09-05 04:40:41 -05:00
The queries endpoint now answers JSON:API at `/api/data-explorer/queries`. The old endpoint stays for now. A plugin declares an endpoint in two small files: a resource that says what the endpoint offers, and a controller that names it. Two things change for a caller. The author and the groups are relationships now rather than plain fields, which follows the JSON:API spec, and paging is by cursor rather than by offset, which is the point of the profile we apply. The total row count and the queries that ship with the plugin without being rows are not covered yet.