mirror of
https://github.com/simonw/datasette.git
synced 2026-07-09 17:14:35 +02:00
Remove the next_url extra - the key is always present
next_url became a default table JSON key alongside next, making the extra a no-op. Requesting ?_extra=next_url now returns the standard unknown-extra 400 error. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
8b159144a5
commit
4874c29286
7 changed files with 23 additions and 43 deletions
|
|
@ -333,7 +333,7 @@ These can be repeated or comma-separated:
|
|||
|
||||
::
|
||||
|
||||
?_extra=columns&_extra=count,next_url
|
||||
?_extra=columns&_extra=count,count_sql
|
||||
|
||||
Requesting an ``_extra`` name that does not exist returns a ``400`` error in the :ref:`standard error format <json_api_errors>`, for example ``{"ok": false, "error": "Unknown _extra: nope", ...}``.
|
||||
|
||||
|
|
@ -437,17 +437,6 @@ The available table extras are listed below.
|
|||
|
||||
"where state = \"CA\" sorted by pk"
|
||||
|
||||
``next_url``
|
||||
Full URL for the next page of results
|
||||
|
||||
``GET /fixtures/facetable.json?_size=1&_extra=next_url``
|
||||
|
||||
``null`` if there are no more pages of results. See :ref:`json_api_pagination`.
|
||||
|
||||
.. code-block:: json
|
||||
|
||||
"http://localhost/fixtures/facetable.json?_size=1&_extra=next_url&_next=1"
|
||||
|
||||
``columns``
|
||||
List of column names returned by this table, row or query.
|
||||
|
||||
|
|
|
|||
|
|
@ -329,7 +329,7 @@ Many of these keys are shared with the :ref:`JSON API <json_api>` for this page.
|
|||
Pagination token for the next page, or None
|
||||
|
||||
``next_url`` - ``str``
|
||||
Full URL for the next page of results
|
||||
Full URL for the next page of results, or None if there are no more pages. See :ref:`json_api_pagination`.
|
||||
|
||||
``ok`` - ``bool``
|
||||
True if the data for this page was retrieved without errors
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue