ok: true in /db.json for consistency

This commit is contained in:
Simon Willison 2026-04-15 15:44:06 -07:00
commit 5f39036b9b
4 changed files with 10 additions and 0 deletions

View file

@ -3,6 +3,12 @@
=========
Changelog
=========
.. dev:
dev
---
- The ``/<database>.json`` endpoint now includes an ``"ok": true`` key, for consistency with other JSON API responses.
.. _v1_0_a26:

View file

@ -40,6 +40,8 @@ The JSON version of this page provides programmatic access to the underlying dat
* `fivethirtyeight.datasettes.com/fivethirtyeight.json <https://fivethirtyeight.datasettes.com/fivethirtyeight.json>`_
* `datasette.io/global-power-plants.json <https://datasette.io/global-power-plants.json>`_
The returned object includes an ``"ok": true`` key alongside keys such as ``"database"``, ``"tables"``, ``"views"``, ``"queries"`` and ``"metadata"``.
.. _DatabaseView_hidden:
Hidden tables