Skip to content

Instantly share code, notes, and snippets.

@mamund
Created March 28, 2017 18:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mamund/6eca5c52b3bbea64fa9ce303a0fd6e68 to your computer and use it in GitHub Desktop.
Save mamund/6eca5c52b3bbea64fa9ce303a0fd6e68 to your computer and use it in GitHub Desktop.
page-level properties for cj documentrs
{
collection: {
version: "1.0",
href: "//api.example.org/",
title: "Long List of Stuff",
properties: {
current-page: "3",
page-count: "1001",
item-count: "15034"
},
links: [
{
href: "http://api.example.org/pages;p=1",
rel: "first",
prompt: "First Page"
},
{
href: "http://api.example.org/pages;p=2",
rel: "previous",
prompt: "Previous Page"
},
{
href: "http://api.example.org/pages;p=4",
rel: "next",
prompt: "Next Page"
},
{
href: "http://api.example.org/pages;p=last",
rel: "last",
prompt: "Last Page"
}
],
items: [],
queries:[],
template:[]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment