datasette/tests
Simon Willison 0abd3abacb
New ?_shape=objects/object/lists param for JSON API (#192)
New _shape= parameter replacing old .jsono extension

Now instead of this:

	/database/table.jsono

We use the _shape parameter like this:

	/database/table.json?_shape=objects

Also introduced a new _shape called 'object' which looks like this:

	/database/table.json?_shape=object

Returning an object for the rows key:

	...
	"rows": {
		"pk1": {
			...
		},
		"pk2": {
			...
		}
	}

Refs #122
2018-04-03 07:52:54 -07:00
..
__init__.py Broke up test_app into test_api and test_html 2017-12-15 04:08:24 -08:00
fixtures.py Utility for writing test database fixtures to a .db file 2018-04-03 06:46:11 -07:00
test_api.py New ?_shape=objects/object/lists param for JSON API (#192) 2018-04-03 07:52:54 -07:00
test_html.py Database/Table views inherit source/license/source_url/license_url metadata 2018-03-27 09:18:32 -07:00
test_inspect.py Mark FTS-related tables as 'hidden' in inspect() 2017-11-21 12:55:59 -08:00
test_utils.py escape_sqlite_table_name => escape_sqlite, handles reserved words 2018-04-03 06:40:49 -07:00