-
Notifications
You must be signed in to change notification settings - Fork 217
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
unify gcPoolStatus and maintenance action for a cleaner API
It was a bit awkward to have two completely distinct endpoints for this with different paths, whereas they related to exactly the same thing. This commit makes the API a bit more consistent by wrapping the `gcPoolStatus` inside a `maintenance action` object. So that, the API now offers two dual endpoints: - post maintenance action - get maintenance action There's only one maintenance action available at this stage.
- Loading branch information
Showing
11 changed files
with
574 additions
and
221 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
lib/core/test/data/Cardano/Wallet/Api/ApiMaintenanceAction.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
{ | ||
"seed": -9096659285789418454, | ||
"samples": [ | ||
{ | ||
"gc_stake_pools": { | ||
"status": "has_run", | ||
"last_run": "1887-02-07T15:59:58Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "restarting", | ||
"last_run": "1895-01-25T13:15:15Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "restarting", | ||
"last_run": "1873-08-31T03:33:04Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "not_started" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "not_started" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "restarting", | ||
"last_run": "1864-06-09T06:48:03.138827934098Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "not_started" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "has_run", | ||
"last_run": "1901-11-24T13:54:25Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "has_run", | ||
"last_run": "1896-02-25T15:16:00Z" | ||
} | ||
}, | ||
{ | ||
"gc_stake_pools": { | ||
"status": "not_applicable" | ||
} | ||
} | ||
] | ||
} |
35 changes: 35 additions & 0 deletions
35
lib/core/test/data/Cardano/Wallet/Api/ApiMaintenanceActionPostData.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"seed": -940073206050741807, | ||
"samples": [ | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
}, | ||
{ | ||
"maintenance_action": "gc_stake_pools" | ||
} | ||
] | ||
} |
Oops, something went wrong.