bee icon indicating copy to clipboard operation
bee copied to clipboard

Update feeds endpoint for better DX

Open rampall opened this issue 1 year ago • 2 comments

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

rampall avatar Sep 14 '23 10:09 rampall

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://:1635 -T "OSM Map" --bee-api-url http://:1633 --curl -v

The --curl simply shows me the actual curl commands that swarm-cli is using.

The resulting reference is fdfd170f73953bc262d936d3a5329b787980335dc0547032bb2a6239ebe95a76

ldeffenb avatar Sep 14 '23 13:09 ldeffenb

i'd agree that managing feeds without some client or library is difficult :(

istae avatar Sep 21 '23 13:09 istae