healthcheck endpoint #998

Merged
konrad merged 1 commits from ajgon/api:feature/healthcheck into main 2021-10-03 18:37:03 +00:00
Contributor

Description

This PR adds a /health endpoint which does nothing more than returning plaintext OK response. It is useful for service discovery tools (consul/kubernetes etc.), to quickly say, that service is alive and running.

Checklist

  • I added or improved tests
  • I added or improved docs for my feature
    • Swagger (including mage do-the-swag)
    • Error codes
    • New config options (including adding them to config.yml.saml and running mage generate-docs)
# Description This PR adds a `/health` endpoint which does nothing more than returning plaintext `OK` response. It is useful for service discovery tools (consul/kubernetes etc.), to quickly say, that service is alive and running. # Checklist * [x] I added or improved tests * [ ] I added or improved docs for my feature * [ ] Swagger (including `mage do-the-swag`) * [ ] Error codes * [ ] New config options (including adding them to `config.yml.saml` and running `mage generate-docs`)
ajgon added 1 commit 2021-10-03 18:02:50 +00:00
continuous-integration/drone/pr Build is passing Details
065785fdc4
healthcheck endpoint
konrad approved these changes 2021-10-03 18:36:36 +00:00
konrad left a comment
Owner

Thanks!

Thanks!
konrad merged commit fb9fa27488 into main 2021-10-03 18:37:03 +00:00
konrad deleted branch feature/healthcheck 2021-10-03 18:37:03 +00:00
konrad referenced this issue from a commit 2021-10-03 18:37:04 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: vikunja/vikunja#998
No description provided.