Skip to content

Commit

Permalink
#241: Add /ping to generated swagger docs
Browse files Browse the repository at this point in the history
  • Loading branch information
MRichards99 committed Aug 13, 2021
1 parent 05fdc70 commit 0439247
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions datagateway_api/src/swagger/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10996,5 +10996,22 @@ paths:
summary: Count investigations for a given Facility Cycle & Instrument
tags:
- Investigations
/ping:
get:
description: Pings the API's connection method to check responsiveness
responses:
'200':
content:
application/json:
schema:
description: OK message
example: DataGateway API OK
type: string
description: Success - the API is responsive on the backend configured
'500':
description: Pinging the API's connection method has gone wrong
summary: Ping API connection method
tags:
- Ping
security:
- session_id: []

0 comments on commit 0439247

Please sign in to comment.