{"repo":"grafana/grafana-openapi-client-go","free":true,"listed":false,"github":"https://github.com/grafana/grafana-openapi-client-go","clone":"git clone https://github.com/grafana/grafana-openapi-client-go.git","description":"Grafana OpenAPI Client for Go","language":"Go Template","stars":91,"topics":["grafana","openapi","swagger","go"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Grafana HTTP OpenAPI Client for Go This HTTP Go client for Grafana is generated from Grafana's OpenAPI specification using swagger for Go. Both code and non-code contributions are very welcome - please feel free to open an issue or PR in this repository if you spot a possible improvement! Dependencies This project uses bingo (located in .bingo/), a tool to automate the versioning of Go packages. Here, bingo manages verison of swagger for Go version so that the client generation is consistent. [Required] In order to generate the client, you must have installed bingo locally. Then, get swagger at the version specified in bingo's swagger.mod. Generate the client Once bingo & swagger are installed (see Dependencies), generate the client for all Grafana APIs , with the following make command: This runs the Swagger generation command. To generate the client for a specific Grafana API , find the name of its tag and model in the Grafana OpenAPI specification. Then, set those as environment variables and run the command to generate it: How to use custom templates In order to generate the client, go-swagger uses default templates. These templates can be customised to add custom configuration that are applied each time the client is generated. For more information, check out the go-swagger docs on how to use custom templates. The default template definitions for the client can be found in go-swagger/generator/templates/client/. In this project, the custom templates can be found in templ","default_branch":null,"files":null,"tree":[],"storefront":"/r/grafana","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/grafana/grafana-openapi-client-go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}