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

Bulk generating duckies #71

Open
vcokltfre opened this issue Oct 17, 2021 · 2 comments
Open

Bulk generating duckies #71

vcokltfre opened this issue Oct 17, 2021 · 2 comments

Comments

@vcokltfre
Copy link
Contributor

vcokltfre commented Oct 17, 2021

This proposal is to create an endpoint to allow many duckies to be generated at once, rather than requiring a large number of requests for someone (me) who sometimes wants a large(ish) quantity of ducks at once.

How the endpoint would work

Seeded

POST /duck/bulk
Content-Type: application/json

{
  "seeds": [
    1234,
    5678
  ]
}

Unseeded

GET /duck/bulk?amount=5

Return value

The return value would be an array of objects containing a seed and URL:

[
  {
    "seed": 1234,
    "url": "https://..."
  },
  {
    "seed": 5678,
    "url": "https://..."
  }
]

This format is also related to #70 except it is an array, rather than a single object, but the object schema remains the same.

@Kronifer
Copy link

Kronifer commented Dec 3, 2021

this seems like it could be pretty useful

@Kronifer
Copy link

Kronifer commented Dec 3, 2021

but do we generate seeds for unseeded ducks? i dont know much about the internals of quackstack

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