bee
bee copied to clipboard
Update feeds endpoint for better DX
Summary
There is no easy way to update a feed with a new reference using REST APIs. Updating feeds using generic SOC endpoints is non trivial and confusing.
Rlated links: https://docs.ethswarm.org/api/#tag/Feed https://docs.ethswarm.org/api/#tag/Single-owner-chunk
Motivation
Implementation
Drawbacks
I use swarm-cli (https://github.com/ethersphere/swarm-cli) to maintain my OSM dataset manifest feed reference:
swarm-cli feed update -r ac28eaf69a6415a243d564ea69765ed8ee81faefc8b2e0b775fc54dbc32d8fa9 --bee-debug-api-url http://
The --curl simply shows me the actual curl commands that swarm-cli is using.
The resulting reference is fdfd170f73953bc262d936d3a5329b787980335dc0547032bb2a6239ebe95a76
i'd agree that managing feeds without some client or library is difficult :(