@maxdome/health

2.1.1 • Public • Published

Provides an /health endpoint response with the health of the app in the Spring Boot format.

Usage

app.get('/health', require('@maxdome/health').controller({
  example: () => {},
}));

Example response

{
  "example": { status: "UP" },
  "status":"UP"
}

Plugins

Swagger

paths:
  /health:
    get:
      summary: "Healthcheck if the app is running correctly"
      responses:
        200:
          description: "OK"
          schema:
            type: object
            properties:
              status:
                type: string
                example: "UP"
        500:
          description: "Internal Server Error"

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 2.1.1
    119
    • latest

Version History

Package Sidebar

Install

npm i @maxdome/health

Weekly Downloads

119

Version

2.1.1

License

MIT

Unpacked Size

8.31 kB

Total Files

7

Last publish

Collaborators

  • dragonnodejs
  • sharaal
  • fabsrc
  • markusz
  • mxdbv
  • csaba.lorincz
  • goexrock
  • dimified