user
09/30/2022, 5:26 PMapi/swagger.yml
to you project and use oapi-codegen to build client side code to access lakefs.user
09/30/2022, 5:36 PMuser
09/30/2022, 5:40 PMuser
09/30/2022, 5:41 PM//go:generate go run <http://github.com/deepmap/oapi-codegen/cmd/oapi-codegen|github.com/deepmap/oapi-codegen/cmd/oapi-codegen> -config oapi.yml <https://raw.githubusercontent.com/treeverse/lakeFS/master/api/swagger.yml>
user
09/30/2022, 5:41 PMgo generate
it will create lakefs.gen.go that include the client go codeuser
09/30/2022, 5:43 PMmain
feel free to change, use and reuse.
Also note that I am pointing to the latest swagger yaml API on GitHub, you can download or point to a specific version as a better practice.user
09/30/2022, 5:52 PMuser
09/30/2022, 5:54 PMclient: true