Skip to content

Commit

Permalink
Update syncing status requirements in getHealth (#341)
Browse files Browse the repository at this point in the history
* Syncing status query parameter must be valid http status code (100-599)

* 400 reponse if invalid syncing status code
  • Loading branch information
nflaig authored Jul 25, 2023
1 parent 50764b1 commit 11e5c27
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion apis/node/health.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ get:
description: "Customize syncing status instead of default status code (206)"
schema:
type: integer
minimum: 1
minimum: 100
maximum: 599
responses:
"200":
description: Node is ready
"206":
description: Node is syncing but can serve incomplete data
"400":
description: Invalid syncing status code
"503":
description: Node not initialized or having issues

0 comments on commit 11e5c27

Please sign in to comment.