Summary
Add a new POST /rest/v3/short-urls/batch endpoint that takes a batch of short URL payloads, allowing multiple short URLs to be created at once.
I have a working implementation with unit and API tests available here. I've tested locally with a batch of 1000 URLs (4s without title resolution, ~1m30s with). Happy to open a PR if the approach is acceptable.
Use case
When integrating Shlink in our production workflows that need to create many short URLs at once, the only option today is to send multiple concurrent requests to /rest/v3/short-urls. A batch endpoint would reduce requests overhead and simplify client-side logic. The original request in #422 also describes this need.
Summary
Add a new POST
/rest/v3/short-urls/batchendpoint that takes a batch of short URL payloads, allowing multiple short URLs to be created at once.I have a working implementation with unit and API tests available here. I've tested locally with a batch of 1000 URLs (4s without title resolution, ~1m30s with). Happy to open a PR if the approach is acceptable.
Use case
When integrating Shlink in our production workflows that need to create many short URLs at once, the only option today is to send multiple concurrent requests to
/rest/v3/short-urls. A batch endpoint would reduce requests overhead and simplify client-side logic. The original request in #422 also describes this need.