You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 3, 2022. It is now read-only.
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.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The text was updated successfully, but these errors were encountered: