The RESTful API for Richmond Sunlight.
This is the API for Richmond Sunlight, used both by third parties and by the site itself. Only the bill and legislator pages consume the API, although those two pages comprise the great majority of the site traffic.
This used to be part of the main repository, but was forked out on its own in late 2016. It was created in ~2009, and hasn’t much been touched since.
It lives on the same EC2 instance as the front-end, though it in a separate webroot, has its own TLS certificate, etc. There is no reason why it could not run on its own server, but that’s not necessary under the standard traffic load. Source updates are delivered via GitHub Pages -> AWS CodeDeploy. (Note that the includes/
directory is pulled from the deploy
branch of richmondsunlight.com
repository on each build.)