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
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
test_inspect.py
test_utils.py escape_sqlite_table_name => escape_sqlite, handles reserved words 2018-04-03 06:40:49 -07:00