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

List pin objects endpoint not working properly? #99

Open
lhenriks opened this issue Jun 28, 2022 · 0 comments
Open

List pin objects endpoint not working properly? #99

lhenriks opened this issue Jun 28, 2022 · 0 comments

Comments

@lhenriks
Copy link

lhenriks commented Jun 28, 2022

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"
      }
    }
  ]
}
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

1 participant