-
Notifications
You must be signed in to change notification settings - Fork 42
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
bug: PUT /filter/v2/subscriptions doesn't exist #969
Comments
This API doesn't seem right. cc @NagyZoltanPeter , this needs to be fixed in nwaku as well. |
I agree the current interface is not pretty clear. @jm-clius WDYT? |
Indeed, the filter protocol only allows for modification not replacement of existing subscriptions. This, however, is a server-side limitation and not on the client-side. Clients can always "replace" one of their subscriptions by doing an "unsubscribe all" followed by a new "subscribe request". Since this is a client-side API, why not have the PUT method follow exactly this chain of events - i.e. publish an "unsubscribe all" and, on success, publish a new filter request? This seems to me to be a useful endpoint and consistent with idiomatic HTTP usage. WDYT? |
Well, I cannot fully agree with it in this form or we should explicitly tell the operators to always use full subscription definition in API calls. This discrepancy from the protocol usage - that is likely to be examined by an operator - can lead to misunderstanding. |
@waku-org/nwaku-developers please create an issue in the nwaku repo to remove the REST api referenced here. |
This is more of a question than a bug.
On nwaku there is this method as described here https://waku-org.github.io/waku-rest-api/#put-/filter/v2/subscriptions
If it's not needed on go-waku please close this bug
The text was updated successfully, but these errors were encountered: