0.yaml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. name: General
  2. description: 'Swalla la la'
  3. endpoints:
  4. -
  5. httpMethods:
  6. - GET
  7. uri: api/healthcheck
  8. metadata:
  9. title: Healthcheck
  10. description: |-
  11. Check that the service is up. If everything is okay, you'll get a 200 OK response.
  12. Otherwise, the request will fail with a 400 error, and a response listing the failed services.
  13. authenticated: false
  14. headers:
  15. Content-Type: application/json
  16. Accept: application/json
  17. urlParameters: []
  18. queryParameters: []
  19. bodyParameters: []
  20. responses:
  21. -
  22. status: 200
  23. content: '{"status":"up","services":{"database":"up","redis":"up"}}'
  24. headers:
  25. cache-control: 'no-cache, private'
  26. content-type: application/json
  27. x-ratelimit-limit: '60'
  28. x-ratelimit-remaining: '56'
  29. access-control-allow-origin: '*'
  30. description: null
  31. -
  32. status: 400
  33. content: '{"status": "down", "services": {"database": "up", "redis": "down"}}'
  34. headers: []
  35. description: '400, Service is unhealthy'
  36. responseFields:
  37. status:
  38. name: status
  39. description: 'The status of this API (`up` or `down`).'
  40. type: string
  41. services:
  42. name: services
  43. description: 'Map of each downstream service and their status (`up` or `down`).'
  44. type: object