-
Notifications
You must be signed in to change notification settings - Fork 110
Conversation
@jmozah i added some comments in the body of the PR. |
@zelig In the GET API.. i currently send the entire tag structure as it is. @acud was talking about sending counters only based on Status(). I don't get it. Why should client be bothered about states? From the client perspective, he gets the counters and he decides what to do with them. This is the only thing remaining in this PR for now. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
minor comments only
plus, could we get rid of custom marshalling?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please remove custom marshalling it is unnecessary
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why the change to GetByAddress
to handle string
. should handle Address
as was before
@jmozah see linting error https://travis-ci.org/ethersphere/swarm/jobs/572356780#L491 |
* 'master' of github.com:ethersphere/swarm: pss: Modularize crypto and remove Whisper. Step 1 - isolate whisper code (ethersphere#1698) pss: Improve pressure backstop queue handling - no mutex (ethersphere#1695) cmd/swarm-snapshot: if 2 nodes to create snapshot use connectChain (ethersphere#1709) network: Add API for Capabilities (ethersphere#1675) pss: fixed flaky test that was using a global variable instead of a local one (ethersphere#1702) pss: Port tests to `network/simulation` (ethersphere#1682) storage: fix hasherstore seen check to happen when error is nil (ethersphere#1700) vendor: upgrade go-ethereum to 1.9.2 (ethersphere#1689) bzzeth: initial support for bzz-eth protocol (ethersphere#1571) network/stream: terminate runUpdateSyncing on peer quit (ethersphere#1696) all: first working SWAP version (ethersphere#1554) version: update to v0.5.0 unstable (ethersphere#1694) chunk, storage: storage with multi chunk Set method (ethersphere#1684) chunk, storage: add HasMulti to chunk.Store (ethersphere#1686) chunk, shed, storage: chunk.Store GetMulti method (ethersphere#1691) api, chunk: progress bar support (ethersphere#1649)
This PR provides the HTTP api support to retrieve tag counters.
A new endpoint /bzz-tag/ is added to achieve this.
Instead of supplying the swarm hash, the tagID can also be supplied like /bzz-tag/?tagID=
The tag id of a uploaded file is returned in the response header.
Any client which wants to implement a progress bar will get this tagId and pull the counters using this API.