-
Notifications
You must be signed in to change notification settings - Fork 83
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
Add code samples #192
Comments
YES PLEASE! |
This and #177 (adding descriptions) would be a major improvement of the API documentation IMHO. However both are quite time-intensive tasks, which is why I put this as an issue not a PR. I'd be glad to do it, but I was thinking might more pressing things for me to work on (please let me know if I'm wrong). Each of those tasks require going through every single endpoint, i.e. each might take 1 day at least, 2 days at most. |
Yeah not mission critical at this juncture but would be nice to sprinkle them in over time. Common api calls like |
Hello everyone! Not sure if this fits better here or in I've been playing around with the API and The things I found most difficult, when I started learning how to use the Maybe as @DavidWells suggested, starting with documenting the most common calls? Where would the examples be added? This project or Let me know if I can help. On another note, which would the project and best way to report possible issues |
@ramigs That sounds great! Until we figure out exactly which tech we'll use for the open-api docs long term, I think adding the examples to the readme of the In terms of reporting possible issues, it's possible to report in either repo, since the issues can be moved if necessary. I also recommend asking questions like that in the Netlify Community forums. The Netlify Support team is in there every day, and there are lots of community members who can help troubleshoot as well. One quick tip in determining whether a problem is a bug in the API, the js-client, or your own code: if the thing you are trying to do can be done in the Netlify UI (like your build hooks example), the bug is probably not in the API itself, because the UI uses the API (check the Network tab calls 😉). If the thing can be done in the Netlify CLI (which uses the js-client), then it probably isn't the js-client (and you might check the CLI repo code to help troubleshoot your own js-client usage). In the particular case of the build hooks, I haven't tried using the js-client |
One code sample for Node.js and Go for each operation would be a great addition to the documentation.
If we were to use Redoc (#182), this can be done using
x-code-samples
.The text was updated successfully, but these errors were encountered: