You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.
Clients should have a simple way of checking if a Swarm server supports pinning content.
One way this could be achieved now is to do a GET bzz-pin in order to list the pins and detect if the response code is 403, but this seems wasteful for the Swarm server to return the list of pins when the client doesn't actually need it.
User-Story
As a dapp developer I would like to be able to detect if the Swarm server I'm connected to supports pinning content so I can adapt the UX accordingly.
Acceptance criteria
A HTTP endpoint over which to perform a HEAD or GET request to check if pinning is enabled.
It could possibly be covered under the HTTP endpoint for adaptive node capabilities as a single endpoint for all capabilities could be more useful to a client than making multiple requests for individual capabilities.
Rationale
Clients should have a simple way of checking if a Swarm server supports pinning content.
One way this could be achieved now is to do a
GET bzz-pin
in order to list the pins and detect if the response code is403
, but this seems wasteful for the Swarm server to return the list of pins when the client doesn't actually need it.User-Story
As a dapp developer I would like to be able to detect if the Swarm server I'm connected to supports pinning content so I can adapt the UX accordingly.
Acceptance criteria
A HTTP endpoint over which to perform a
HEAD
orGET
request to check if pinning is enabled.It could possibly be covered under the HTTP endpoint for adaptive node capabilities as a single endpoint for all capabilities could be more useful to a client than making multiple requests for individual capabilities.
Related Issues
The text was updated successfully, but these errors were encountered: