Skip to content

Commit

Permalink
Merge pull request #46 from tidepool-org/add-summary-client
Browse files Browse the repository at this point in the history
[BACK-2168] add generated summary client
  • Loading branch information
Roukoswarf authored Jun 16, 2022
2 parents 95d2456 + 5159e7f commit 14e7944
Show file tree
Hide file tree
Showing 32 changed files with 18,227 additions and 40 deletions.
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# go-common Makefile

# Generates client files
generate:
swagger-cli bundle ../TidepoolApi/reference/summary.v1.yaml -o ./spec/summary.v1.yaml -t yaml
oapi-codegen -package=api -generate=types spec/summary.v1.yaml > clients/summary/types.go
oapi-codegen -package=api -generate=client spec/summary.v1.yaml > clients/summary/client.go
cd clients/summary && go generate ./...
244 changes: 244 additions & 0 deletions clients/summary/client.go

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

103 changes: 103 additions & 0 deletions clients/summary/types.go

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

2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ require (
github.com/avast/retry-go v3.0.0+incompatible
github.com/cloudevents/sdk-go/protocol/kafka_sarama/v2 v2.2.0
github.com/cloudevents/sdk-go/v2 v2.2.0
github.com/deepmap/oapi-codegen v1.11.0
github.com/globalsign/mgo v0.0.0-20181015135952-eeefdecb41b8
github.com/kelseyhightower/envconfig v1.4.0
github.com/xdg/scram v0.0.0-20180814205039-7eeb5667e42c
gopkg.in/yaml.v3 v3.0.1 // indirect
)
Loading

0 comments on commit 14e7944

Please sign in to comment.