api-v2
api-v2 copied to clipboard
Add a Sandbox or a Data-Generating/Demo API Key
The subject sums it up basically - it would be awesome for testing if we could have a demo account. To test pagination at this moment, I have to create a bunch of servers (which likely involves getting my droplet limit upped) which I also have to pay for - or I have to imitate responses that I would expect writing my own server to do so and can't guarantee my tools output would match the API.
Just an idea. Obviously there's work-arounds but it would be a nice addition.
Leaking some super secret internal info here:
This was basically what I was referring to. I'm not entirely sure when/if, but it's definitely something we thought would add a lot to the API.
Also @ForbiddenEra, you can pass per_page=1
as part of the query string and then you'll get paginated responses.
Thanks.
Any news on this issue? Can we expect something soon?
Please Please PLEASE :+1:
I'm not sure this requires a separate request, but is it currently possible to enforce the exclusion of certain existing droplets and snapshots from getting accidentally nuked by using the API? I wanted to start testing out the API with a personal access token having both read and write permissions. I've been reluctant to do destructive testing without a proper sandbox because snapshots are also within the reach of the API.
Wow, two years later. I was actually hoping I could start creating some integration tests with such a mock/test endpoint/service. Any idea whether this will still happen @macb ?
It's been 4 years since this bug has been filed. Unless this feature is planned, I'd say DO team should mark this as wont-fix. We all love DO, but this is really important to have. See Stripe's beloved API for example.
And here we are in 2020 still without any comment
This would be great to have. I'm looking to add some end-to-end tests to https://github.com/DigitalOceanPHP/Client. There's only so much value in mocking everything!