Skip to content
This repository has been archived by the owner on Dec 22, 2017. It is now read-only.

Add support for json output for statuses #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

yuki24
Copy link

@yuki24 yuki24 commented Apr 15, 2014

There were a couple of pull requests #5 and #7 for this support, but none of them came with tests. This pull request does.

The json schema is the same as #5, but you can put Accept: application/json to get json result.

GET "/" Accept: application/json:

{
  "status": "up",
  "services": [
    {
      "name": "Application",
      "description": "Main application",
      "status": "up",
      "last_seen": "2012-10-24T06:05:12Z"
    }
  ]
}

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

Successfully merging this pull request may close these issues.

1 participant