summaryrefslogtreecommitdiffstats
path: root/components/pm-subscription-handler/pmsh_service/mod/pmsh_swagger.yml
blob: 7bfecd81b76b4493be334f08aa5b425dad39aa2d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
swagger: "2.0"
info:
  title: PM Subscription Handler Service
  version: "1.0.0"
  description: This is the swagger file that outlines the PM subscription handler api
consumes:
  - "application/json"
produces:
  - "application/json"

schemes:
  - https

# Paths supported by the server application
paths:
  /healthcheck:
    get:
      operationId: "mod.healthcheck.status"
      tags:
        - "HealthCheck"
      description: >-
        This is the health check endpoint. If this returns a 200, the server is alive.
      responses:
        200:
          description: Successful response
          schema:
            type: object
            properties:
              status:
                type: string
                description: Overall health of PMSH
                enum: [healthy, unhealthy]
        503:
          description: the pmsh service is unavailable