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

List pin objects endpoint not working properly? #99

Open lhenriks opened 2 years ago

lhenriks commented 2 years ago

Hi,

Does query parametrs really work with this endpoint? "cid=pinnedcid" is the only query parameter that is working at the moment, no luck with others.

Below endpoint only outputs something when the files still have the status "pinning", afterwards nothing...

curl -s -X GET -H 'Content-Type: application/json' 'https://gateway.example.com:9097/pins' | jq
{
  "count": 0,
  "results": null
}

Request This query parameter works, nothing else.

curl -s -X GET -H 'Content-Type: application/json' 'https://gateway.example.com:9097/pins?cid=QmZA9idEBomqsYBvA9Z...' | jq

Response

{
  "count": 1,
  "results": [
    {
      "requestid": "QmZA9idEBomqsYBvA9Z...",
      "status": "pinned",
      "created": "2022-06-28T10:33:01Z",
      "pin": {
        "cid": "QmZA9idEBomqsYBvA9Z...",
        "name": "PinnedCID",
        "origins": [],
        "meta": null
      },
      "delegates": [
        ...
      ],
      "info": {
        "source": "IPFS cluster API",
        "warning1": "CID used for requestID. Conflicts possible",
        "warning2": "experimental"
      }
    }
  ]
}