Skip to content
This repository has been archived by the owner on Jan 15, 2024. It is now read-only.

Use swagger to generate Go client for Folder service #155

Closed
wants to merge 6 commits into from

Conversation

nikimanoledaki
Copy link

@nikimanoledaki nikimanoledaki commented Jun 30, 2023

Addresses grafana/grafana#47827

Replace the current grafana-api-golang-client functions with the generated swagger go-client (update tests to use the new one), create a separate branch there, make sure no interface is changed

Builds on work from @papagian's PR: #90


This PR generates the Go client for the Folder service through swagger.

This is the first step in moving from a DIY Go client that is manually updated to a Go client that is automatically generated by swagger.

In this PR, only the Folder service is generated with swagger to keep this PR smaller.

The previous unit tests were moved and updated to use the generated client to ensure that nothing went missing in the process.

Co-authored-by: Sofia Papagiannaki papagian@users.noreply.github.com
Co-authored-by: Arati R. suntala@users.noreply.github.com

papagian and others added 6 commits June 23, 2023 11:20
Co-authored-by: Arati R. <suntala@users.noreply.github.com>
Co-authored-by: Niki <nikimanoledaki@users.noreply.github.com>
Co-authored-by: Niki <nikimanoledaki@users.noreply.github.com>
Co-authored-by: Sofia Papagiannaki <papagian@users.noreply.github.com>
* Remove deprecated and archived linters
* Configure depguard's allowlist
* Ignore 'nosec' comments when linting

Co-authored by: Arati Rana <arati@grafana.com>
@CLAassistant
Copy link

CLAassistant commented Jun 30, 2023

CLA assistant check
All committers have signed the CLA.

@julienduchesne
Copy link
Member

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
4 participants