JSON Structure

Searching / Browsing

Searching and Browsing should retrieve a JSON structure that follows this format:

{
  "count": 1492,
  "date_range": {
      "start": -5000,
      "mean": 1559,
      "stddev": 729,
      "end": 2007
    },
  "facets": [
      { 
        "name" : "collection",
        "title" : "Collection",
        "show_more" : { "limit" : 5 },
        "options" : [ 
          {
            "count" : 8599,
            "id" : "collection:vr",
            "label" : "Art & Architecture Collection",
            "value" : "collection%3Avr"
          }
        ],
      },
  ],
  "search_results": [
      {
        "download": "download/vr:111733",
        "id": "vr:111733",
        "metadata": [
            "Korovin, Konstantin, 1839-1861"
          ],
        "title": "Paris"
      }
  ],
  "filters": {
      "date_range": {
          "end": 2007,
          "start": -5000
        }
    }
}
json_structure.txt · Last modified: 2013/02/21 10:11 by acoburn@amherst.edu
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International