Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Simple status endpoint #72

Open
konklone opened this issue Jan 26, 2014 · 0 comments
Open

Simple status endpoint #72

konklone opened this issue Jan 26, 2014 · 0 comments

Comments

@konklone
Copy link

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:

congress.api.sunlightfoundation.com

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant