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

Documentation for other request types than GET missing #30

Open
DavHau opened this issue Nov 16, 2019 · 1 comment
Open

Documentation for other request types than GET missing #30

DavHau opened this issue Nov 16, 2019 · 1 comment

Comments

@DavHau
Copy link

DavHau commented Nov 16, 2019

All examples in the readme only demonstrate the usage for GET requests. There is not a single example for other request types like POST. I needed to dig inside the docs of Slumber to find out how to do them. Including at least one example on how to create a new server or similar would save some time for a lot of people i guess.

@CDWimmer
Copy link

CDWimmer commented Feb 11, 2020

It takes some practice but there is a correlation between the structure of an API call and the documentation on the website. Though I agree that some more examples would have helped. Even then it's hideously ugly to write code like this.

To this end I'm writing some wrapper code for the basic ComputeAPI things like stopping and starting servers, deleting and creating IPs etc. because figuring out this API->Python translation more than once is not something I'm willing to do, and I really wanted it to have Python objects to represent servers and such. (I've not got far but browsing what I've written should show you what you're after)
https://github.com/CDWimmer/scwPy

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

No branches or pull requests

2 participants