Skip to content

Commit

Permalink
Remove redundant get- in total funds API
Browse files Browse the repository at this point in the history
  • Loading branch information
jhbertra committed Jan 17, 2022
1 parent 49f113b commit c6d455f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions marlowe-dashboard-client/generated/Marlowe.purs
Expand Up @@ -101,15 +101,15 @@ getApiVersion = do
Left err -> throwError $ { request: affReq, description: DecodingError err }
Right body -> pure body

getApiWalletV1ByWalletidGettotalfunds
getApiWalletV1ByWalletidTotalfunds
:: forall env m
. HasSPSettings env
=> MonadAsk env m
=> MonadError AjaxError m
=> MonadAff m
=> WalletIdDto
-> m GetTotalFundsResponse
getApiWalletV1ByWalletidGettotalfunds wallet_id = do
getApiWalletV1ByWalletidTotalfunds wallet_id = do
spSettings <- asks spSettings
let baseURL = spSettings.baseURL
let httpMethod = Left GET
Expand All @@ -133,7 +133,7 @@ getApiWalletV1ByWalletidGettotalfunds wallet_id = do
<> "/"
<> encodeURIComponent (toURLPiece wallet_id)
<> "/"
<> "get-total-funds"
<> "total-funds"
<> queryString
let
reqHeaders =
Expand Down
2 changes: 1 addition & 1 deletion marlowe-dashboard-client/src/API/Marlowe/Run/Wallet.purs
Expand Up @@ -20,4 +20,4 @@ getTotalFunds
=> WalletIdDto
-> m GetTotalFundsResponse
getTotalFunds wallet =
doGetRequest $ "/api/wallet/v1/" <> unwrap wallet <> "/get-total-funds"
doGetRequest $ "/api/wallet/v1/" <> unwrap wallet <> "/total-funds"
2 changes: 1 addition & 1 deletion marlowe-dashboard-server/src/Marlowe/Run/Wallet/V1/API.hs
Expand Up @@ -28,5 +28,5 @@ instance ToDto Domain.GetTotalFundsResponse GetTotalFundsResponse where
GetTotalFundsResponse (toDto assets) sync

type API =
(Capture "wallet-id" WalletIdDto :> "get-total-funds" :> Get '[JSON] GetTotalFundsResponse)
(Capture "wallet-id" WalletIdDto :> "total-funds" :> Get '[JSON] GetTotalFundsResponse)
:<|> ("centralized-testnet" :> CentralizedTestnet.API)

0 comments on commit c6d455f

Please sign in to comment.