I added some fields for fun, but the response body doesn't matter at all - just a 200 status code in the HTTP headers.
The Congress API doesn't do anything special, this is the code. It just returns 200, so it measures whether the app is reachable. That's fine for our purposes right now, but you could check whether Solr is up if you felt like it.
It'd be nice (for one of the apps @jcarbaugh and I are building) to be able to check the status of the API, quickly and programmatically.
As an example, I added this to the root of the Congress API recently:
I added some fields for fun, but the response body doesn't matter at all - just a 200 status code in the HTTP headers.
The Congress API doesn't do anything special, this is the code. It just returns 200, so it measures whether the app is reachable. That's fine for our purposes right now, but you could check whether Solr is up if you felt like it.