Closed
Description
Context: Ability to tell CID is pinned indirectly is somnething that we need for Pinning Service integration within IPFS Desktop and WebUI (ipfs/ipfs-gui#91).
It is possible to check pin status of a specific CID:
GET /pins?cid=Qmfoo
Returned PinStatus
object includes pin
object for recursive pin and a status
:
pinning-services-api-spec/ipfs-pinning-service.yaml
Lines 303 to 310 in 13a817d
Document behavior for indirect pins
Current spec does not specify what should be the response for a CID that is indirectly pinned (not pinned itself, but a member of a DAG that is recursively pinned).
Proposal
- I don't think we should add
indirect
status. - Instead, asking for indirectly pinned CID should return
Pin
object that is responsible for keeping it around
Thoughts, concerns?