mirror of
https://github.com/simonw/datasette.git
synced 2026-07-09 09:04:42 +02:00
Document the boolean query string argument grammar
Boolean arguments parsed by value_as_boolean() accept on/true/1 and off/false/0 - state this once in the JSON API docs rather than leaving each argument to imply its own grammar. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01GrHZSypDfMnym1tM5XJAFZ
This commit is contained in:
parent
6e17c51361
commit
3322e1f528
1 changed files with 4 additions and 0 deletions
|
|
@ -276,6 +276,10 @@ Here is an example Python function built using `requests <https://requests.readt
|
|||
Special JSON arguments
|
||||
----------------------
|
||||
|
||||
Boolean query string arguments - such as ``?_labels=`` and
|
||||
``?_json_infinity=`` - accept ``on``, ``true`` or ``1`` for true and
|
||||
``off``, ``false`` or ``0`` for false.
|
||||
|
||||
Every Datasette endpoint that can return JSON also accepts the following
|
||||
query string arguments:
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue