Skip to content

Commit 2e4dca3

Browse files
committed
Add Swagger generator && Add Logger in Go
Signed-off-by: Maxence Maireaux <maxence@maireaux.fr>
1 parent bc6c9c9 commit 2e4dca3

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

api/controllers/account_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ func (ctl *AccountController) GetAccount(c *gin.Context) {
7575
}
7676

7777
// PostAccountMetadata godoc
78-
// @Summary List Accounts
78+
// @Summary Add metadata to account
7979
// @Schemes
8080
// @Param ledger path string true "ledger"
8181
// @Param accountId path string true "accountId"

api/controllers/ledger_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ func NewLedgerController() LedgerController {
1818
}
1919

2020
// GetStats godoc
21-
// @Summary Get Stats
21+
// @Summary Get ledger stats (aggregate metrics on accounts and transactions)
2222
// @Schemes
2323
// @Description The stats for account
2424
// @Accept json

api/controllers/script_controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ func NewScriptController() ScriptController {
2323
}
2424

2525
// PostScript godoc
26-
// @Summary List Accounts
26+
// @Summary Execute a Numscript and commit transaction if any
2727
// @Schemes
2828
// @Param ledger path string true "ledger"
2929
// @Accept json

0 commit comments

Comments
 (0)