ipfs / pinning-services-api-spec

Standalone, vendor-agnostic Pinning Service API for IPFS ecosystem
https://ipfs.github.io/pinning-services-api-spec/
Creative Commons Zero v1.0 Universal
100 stars 27 forks source link

Feature proposal: ability to get bulk pin statuses by request IDs #80

Open lidel opened 2 years ago

lidel commented 2 years ago

Context

Right now, it is possible to check only one ID at a time via HTTP GET tot /pins/{requestid}

Proposed enhancement

@whyrusleeping suggested adding ability to query status for multiple requestids.

It sounds like a sensible enhancement, that potentially lowers the number or HTTP requests that need to be sent to the pinning service when tracking pinning status of multiple datasets at the same time.

To make it aligned with existing conventions, we could add it as a new filter, similar to cid one:

/pins?requestid=123123,43234,234237

cc @ipfs/wg-pinning-services @obo20 @hsanjuan thoughts?

Open questions