Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 2 commits into from Apr 3, 2018
Merged

Conversation

simonw
Copy link
Owner

@simonw simonw commented Apr 3, 2018

Refs #122

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.

None yet

1 participant