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

[collection][pagination] - Add the list metadata as get parameters and the criteria as post parameters #52

Closed
pierr opened this issue Nov 26, 2014 · 2 comments
Assignees

Comments

@pierr
Copy link
Contributor

pierr commented Nov 26, 2014

In order to have a fonctionnal pagination, working the 'best' way, two things sould be done:

  • the pagination, and list metadatas should be given as get parameters
  • the criteria should be in the body of the request
  • POST http://domain/entity/skip=20&perPage=10
  • body: {"name": "pierre", "age": 27}
@pierr pierr modified the milestones: v0.2.1 - New Doc, v0.2.2 - Bug and pagination Nov 26, 2014
@pierr
Copy link
Contributor Author

pierr commented Nov 26, 2014

@NPi2Loup Ok with the proposal?

@NPi2Loup
Copy link

Ok for pagination, sort and metadata as query parameters, and criteria/data as body.
Supported parameters are:
top (int:maxElement)
skip (int:list offset)
sortFieldName (String : field name in camelCase to sort by)
sortDesc (boolean true/false)

Vertigo\Vega should include it in v0.7.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants