Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release: v0.12.0 #108

Merged
merged 4 commits into from
Dec 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
80 changes: 79 additions & 1 deletion docs/apidocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ servers:
info:
title: tx-mining-service API
description: This service is used to resolving transactions before propagating them into the network
version: 0.11.0
version: 0.12.0
paths:
/health-check:
get:
Expand All @@ -19,6 +19,84 @@ paths:
summary: Success
value:
success: true
/health:
get:
summary: Check if the service and its components are up and running
responses:
'200':
description: Success
content:
application/json:
examples:
success:
summary: Success
value:
status: pass
description: Health status of TxMiningService
checks:
manager:
- status: pass
output: Everything is OK
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
'503':
description: Service Unhealthy
content:
application/json:
examples:
no-miners:
summary: No miners connected
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: fail
output: No miners connected
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
fullnode-not-responding:
summary: Fullnode is not responding
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: pass
output: Everything is OK
component_name: manager
component_type: internal
fullnode:
- status: fail
output: "Couldn't connect to fullnode: error"
component_name: fullnode
component_type: http
no-jobs-submitted:
summary: No jobs submitted
value:
status: fail
description: Health status of TxMiningService
checks:
manager:
- status: fail
output: No miners submitted a job in the last 1 hour
component_name: manager
component_type: internal
fullnode:
- status: pass
output: Fullnode is responding correctly
component_name: fullnode
component_type: http
/mining-status:
get:
summary: General information and statistics about mining
Expand Down
Loading
Loading