api-v2 icon indicating copy to clipboard operation
api-v2 copied to clipboard

Add a Sandbox or a Data-Generating/Demo API Key

Open ForbiddenEra opened this issue 10 years ago • 10 comments

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.

ForbiddenEra avatar Jul 02 '14 02:07 ForbiddenEra

Leaking some super secret internal info here:

screen shot 2014-07-01 at 10 41 11 pm

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.

macb avatar Jul 02 '14 02:07 macb

Also @ForbiddenEra, you can pass per_page=1 as part of the query string and then you'll get paginated responses.

macb avatar Jul 02 '14 02:07 macb

Thanks.

ForbiddenEra avatar Jul 02 '14 02:07 ForbiddenEra

Any news on this issue? Can we expect something soon?

yassirh avatar Oct 14 '14 11:10 yassirh

Please Please PLEASE :+1:

kahnvex avatar Dec 09 '14 18:12 kahnvex

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.

ghost avatar Mar 17 '15 15:03 ghost

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 ?

luceos avatar Dec 05 '16 15:12 luceos

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.

mkarnicki avatar Jan 28 '18 22:01 mkarnicki

And here we are in 2020 still without any comment

etienne-napoleone avatar Jun 06 '20 12:06 etienne-napoleone

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!

GrahamCampbell avatar Jul 09 '20 10:07 GrahamCampbell