Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add support to new crossprofiles #6

Merged
merged 5 commits into from
Oct 30, 2024

Conversation

jonathanCaamano
Copy link

servicesAndRoles := &RolesAndServices{}
apiDevhub := fmt.Sprintf("%s/api/identity/%s", apiUrl, userToIdentify)
func GetServicesAndGroup(devhubclient *Client, apiUrl, apiEndpoint, apiPassword, userToIdentify string, writeGroups []string) (*GroupAndServices, error) {
var result map[string]interface{}
Copy link

@DanielDorado DanielDorado Oct 24, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMO, it is better to pass a struct because the response is typed, then we do not have to cast and check if it is a string or not in GetRolesAndServices.

I have not tested it, but getting the OpenAPI specification and using https://github.com/OpenAPITools/openapi-generator will create a good structure.

@jonathanCaamano jonathanCaamano merged commit ab6f3fc into draft-3.5.8 Oct 30, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants