Skip to content

Commit

Permalink
docs: add contracts routes
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjan authored and ChrisSchinnerl committed Dec 16, 2024
1 parent ebccf97 commit 2abb5c3
Show file tree
Hide file tree
Showing 3 changed files with 378 additions and 4 deletions.
1 change: 1 addition & 0 deletions .changeset/extend_openapi_spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ default: major

The following routes were added:
- consensus
- contracts
- syncer
- txpool
- wallet
2 changes: 1 addition & 1 deletion bus/routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,7 @@ func (b *Bus) contractsHandlerGET(jc jape.Context) {
case api.ContractFilterModeArchived:
case api.ContractFilterModeGood:
default:
jc.Error(fmt.Errorf("invalid filter mode: '%v'", filterMode), http.StatusBadRequest)
jc.Error(fmt.Errorf("invalid filter mode '%v', must be one of [active, archived, all, good]", filterMode), http.StatusBadRequest)
return
}

Expand Down
Loading

0 comments on commit 2abb5c3

Please sign in to comment.