Service-checker

service-checker is a generic swagger-based webservice checker. It uses an extension of the swagger specification called.

Spec
is currently supported for both GET and POST requests. Inside each get or post stanza, there can be  and   keys. indicates whether service-checker should test that endpoint. By default it is. is a list of objects with,   and   objects.




 * : interpolated into the URL template according to RFC 6570 (note that only a subset is currently supported)
 * : Any HTTP headers that should be sent along with the request
 * : Any query parameters that should be sent along with the request if a GET request
 * : Any POST data that should be sent along with the request if a POST request
 * : HTTP status code that should be expected (integer)
 * : HTTP headers that should be expected
 * : Exact body response that is expected or a regex. To indicate that it is a regex, it should start and end with a slash

Additionally, in the root spec, there can be a  object. Each parameter specified here will be applied to every request (TODO: are these query parameters or for URL interpolation?)

Here's a basic but complete example: