Skip to content

Add pagination #11

Description

@tintamarre
curl -X GET "https://ecli.openjustice.be/BE/RVSCDE/2010/" -H "accept: application/json" > data.json && wc -c data.json 
  384510 data.json

Proposition of schema for pagination:

{
   "total": 4700,
   "per_page": 40,
   "current_page": 1,
   "last_page": 4,
   "first_page_url": "/BE/RVSCDE/2010/?page=1",
   "last_page_url": "/BE/RVSCDE/2010/?page=118",
   "next_page_url": "/BE/RVSCDE/2010/?page=2",
   "prev_page_url": null,
   "path": "https://ecli.openjustice.be",
   "from": 1,
   "to": 40,
   "data":[
        {
            // Result Object
        },
        {
            // Result Object
        }
   ]
}

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions