Skip to content

Commit

Permalink
Merge pull request #9744 from vegaprotocol/fix/add-funding-payments-A…
Browse files Browse the repository at this point in the history
…PI-to-REST

fix: add missing rest binding for funding payments
  • Loading branch information
jeremyletang authored Oct 11, 2023
2 parents 4d615b3 + 1fc6734 commit 1fe2ddd
Show file tree
Hide file tree
Showing 3 changed files with 86 additions and 1 deletion.
83 changes: 83 additions & 0 deletions protos/data-node/api/v2/trading_data.pb.gw.go

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

2 changes: 1 addition & 1 deletion protos/embed_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ func Test_DataNodeBindings(t *testing.T) {
t.Run("CoreBindings should return the core http bindings", func(t *testing.T) {
bindings, err := protos.DataNodeBindings()
require.NoError(t, err)
wantCount := 100
wantCount := 101

assert.Len(t, bindings.HTTP.Rules, wantCount)

Expand Down
2 changes: 2 additions & 0 deletions protos/sources/data-node/grpc-rest-bindings.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,8 @@ http:
get: "/api/v2/funding-periods/{market_id}"
- selector: datanode.api.v2.TradingDataService.ListFundingPeriodDataPoints
get: "/api/v2/funding-periods/data-points/{market_id}"
- selector: datanode.api.v2.TradingDataService.ListFundingPayments
get: "/api/v2/funding-payments"
- selector: datanode.api.v2.TradingDataService.GetCurrentReferralProgram
get: "/api/v2/referral-programs/current"
- selector: datanode.api.v2.TradingDataService.ListReferralSets
Expand Down

0 comments on commit 1fe2ddd

Please sign in to comment.