Skip to content

New ?_shape=objects/object/lists param for JSON API#192

Merged
simonw merged 2 commits intomasterfrom
redesign-json
Apr 3, 2018
Merged

New ?_shape=objects/object/lists param for JSON API#192
simonw merged 2 commits intomasterfrom
redesign-json

Conversation

@simonw
Copy link
Owner

@simonw simonw commented Apr 3, 2018

Refs #122

simonw added 2 commits April 3, 2018 07:02
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
@simonw simonw changed the title New _shape= JSON API New ?_shape=objects/object/lists param for JSON API Apr 3, 2018
@simonw simonw merged commit 0abd3ab into master Apr 3, 2018
@simonw simonw deleted the redesign-json branch April 3, 2018 14:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant