meraki / dashboard-api-go Goto Github PK
View Code? Open in Web Editor NEWDashboard API for Golang
License: MIT License
Dashboard API for Golang
License: MIT License
dashboard-api-go/.openapi/templates/client.mustache
Lines 65 to 67 in 0ae3ac4
Currently, the retryClient does not expose the logger, causing DEBUG
level logs to always be emiited.
Exposing other parts of the retryclient would also be good to allow for custom retry configurations (if needed)
Is your feature request related to a problem? Please describe.
Currently while editing the dashboard templates or regenerating the library with newer specs, it can take a lot of setup and teardown.
Describe the solution you'd like
It would be a good idea to create a Makefile that will take care of the building and code generation for us. Having to run through the commands and clean things up inside the client/ directory is pretty annoying for small changes.
Describe alternatives you've considered
We could theoretically make the template a separate repo and vendor in the OpenAPI spec, but I think for now it would be best to have a Makefile that runs through all the commands inside of the README in the client/ directory.
Describe the bug
I'm trying to use this endpoint: https://developer.cisco.com/meraki/api-v1/get-organization-appliance-vpn-statuses/
The docs show I can pass an array of network ids in to limit the data returned. When I try this, I get the following error:
{{"errors":["'networkIds' must be an array"]}}
To Reproduce
networks := []string{"N_12345678"}
resp, r, err := apiClient.StatusesApi.GetOrganizationApplianceVpnStatuses(context.Background(), org.ID).NetworkIds(networks).Execute()
if err != nil {
log.Infof("Error when calling `StatusesApi.GetOrganizationApplianceVpnStatuses``: %v\n", err)
log.Infof("Full HTTP response: %v\n", r)
}
log.Infof("Response from `StatusesApi.GetOrganizationApplianceVpnStatuses`: %v\n", resp)
The above code for me always errors out. Removing the network parameter works well.
Expected behavior
I would expect a valid http request and filtered results returned.
Describe the bug
json: cannot unmarshal object into Go struct field GetOrganizationDevicesStatuses200ResponseInnerComponents.components.powerSupplies of type string
currently marked as type []string
in API
To Reproduce
Steps to reproduce the behavior:
statuses, _, err = client.OrganizationsApi.GetOrganizationDevicesStatuses(ctx, orgID).Execute()
if err != nil {
log.Fatal(err)
}
Expected behavior
No Error
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.