-
Notifications
You must be signed in to change notification settings - Fork 43
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
feat: filterv2 REST API #746
Comments
For |
Is this functionality to be implemented for LightNode or FullNode? |
@richard-ramos filter v2 get messages endpoint only takes ContentTopic, no pubsubTopic. Does this mean to derive the pubsubTopic from contentTopic or to get messages on all pubsubTopics that matches contentTopic? https://github.com/waku-org/nwaku/blob/master/waku/waku_api/rest/filter/openapi.yaml#L335-L348 |
I think this is where we need to deviate from the defined openapi.yaml file. We need to be able to optionally define the pubsub topic. If it is not defined, we need to derive the pubsub topic from the content topics (similar to this https://github.com/waku-org/go-waku/blob/5dfbd98c74d21664caea1d6722c28d120f52c04b/waku/v2/protocol/filter/client.go#L144C3-L156), but if specified, we need to return the messages that match both the content topic and pubsub topic. |
Perhaps a separate endpoint? i.e.: |
Ok, i will add both endpoints, /filter/v2/messages_by_pubsubTopic/{pubsubTopic}/{contentTopic} and /filter/v2/messages/{contentTopic}, where pubsub is derived from contentTopic. |
Weekly update
|
@richard-ramos is this something that is required on rust-bindings? |
Not required. REST server is not used in bindings. |
Implement filterV2 REST API, following this openapi yml file: https://github.com/waku-org/nwaku/pull/1890/files#diff-d0d5d66c0f96582065344acd54ce7f1b65fb973ed201435ac0689020c3464dce
The REST api is currently located at https://github.com/waku-org/go-waku/tree/master/cmd/waku/server/rest
The focus of the task should be limited to only the REST server as the RPC can be considered deprecated and will be removed eventually so it's not worth it to add FilterV2 functionality to it.
The text was updated successfully, but these errors were encountered: