Skip to content

Commit

Permalink
Merge pull request #72 from celenium-io/fix/tx-namespaces
Browse files Browse the repository at this point in the history
Feature: add namespace list endpoint for transaction
  • Loading branch information
aopoltorzhicky authored Dec 16, 2023
2 parents 6b7e619 + d7bc576 commit f7ffcbb
Show file tree
Hide file tree
Showing 11 changed files with 613 additions and 17 deletions.
110 changes: 109 additions & 1 deletion cmd/api/docs/docs.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

110 changes: 109 additions & 1 deletion cmd/api/docs/swagger.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 75 additions & 1 deletion cmd/api/docs/swagger.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions cmd/api/handler/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,3 +170,15 @@ func (p *namespaceList) SetDefault() {
p.Sort = desc
}
}

type listForTx struct {
Hash string `param:"hash" validate:"required,hexadecimal,len=64"`
Limit uint64 `query:"limit" validate:"omitempty,min=1,max=100"`
Offset uint64 `query:"offset" validate:"omitempty,min=0"`
}

func (p *listForTx) SetDefault() {
if p.Limit == 0 {
p.Limit = 10
}
}
Loading

0 comments on commit f7ffcbb

Please sign in to comment.