Skip to content

Sessions

Matt Farmer edited this page Aug 3, 2013 · 2 revisions

For the purposes of this application the Sessions Resource refers to the legislative sessions of the Georgia General Assembly. Information retrieved from this API resource can be useful in retrieving archived data from older sessions. By default, all API resources will retrieve data based on the current session. If you wish to retrieve data from older sessions, you can use this API call to see what sessions the Report Card Application has data for.

The Session Model

Sessions are defined as follows:

Field Description
_id The unique ID of the session in the report card database.
assemblyId The ID of the session on the General Assembly website. Useful for generating URLs to their site.
name The name of the legislative session.
current A boolean value indicating whether or not this is the current session.

GET /api/v1/sessions

This API call will retrieve a list of all sessions that exist in the database, and return the result as a JSON array of Session objects serialized as JSON.

Example Response

[
  {
    "_id": "abcabcabca",
    "assemblyId": 16,
    "name": "2010-2011 Regular Session",
    "current": false
  },
  {
    "_id": "abcabcabcb",
    "assemblyId": 17,
    "name": "2011 Special Session",
    "current": true
  }
]
Clone this wiki locally