diff --git a/api-spec/filterapi_v1_messages.yaml b/api-spec/filterapi_v1_messages.yaml deleted file mode 100644 index 2af80d3..0000000 --- a/api-spec/filterapi_v1_messages.yaml +++ /dev/null @@ -1,41 +0,0 @@ -# Legacy support for v1 waku filter -# /filter/v1/messages/{contentTopic}: -get: # get_waku_v2_filter_v1_messages - summary: Get the latest messages on the polled content topic - description: Get a list of messages that were received on a subscribed content topic after the last time this method was called. - operationId: getMessagesByTopic - tags: - - filter_legacy - parameters: - - in: path - name: contentTopic # Note the name is the same as in the path - required: true - schema: - type: string - description: Content topic of message - responses: - '200': - description: The latest messages on the polled topic. - content: - application/json: - schema: - $ref: './schemas/apitypes.yaml#/FilterGetMessagesResponse' - # TODO: Review the possible errors of this endpoint - '400': - description: Bad request. - content: - text/plain: - schema: - type: string - '404': - description: Not found. - content: - text/plain: - schema: - type: string - '5XX': - description: Unexpected error. - content: - text/plain: - schema: - type: string diff --git a/api-spec/filterapi_v1_subscriptions.yaml b/api-spec/filterapi_v1_subscriptions.yaml deleted file mode 100644 index 4a946e2..0000000 --- a/api-spec/filterapi_v1_subscriptions.yaml +++ /dev/null @@ -1,71 +0,0 @@ -# Legacy support for v1 waku filter -# /filter/v1/subscriptions: -post: # post_waku_v2_filter_v1_subscription - summary: Subscribe a node to an array of topics - description: Subscribe a node to an array of content topics. - operationId: postSubscriptions - tags: - - filter_legacy - requestBody: - content: - application/json: - schema: - $ref: './schemas/apitypes.yaml#/FilterLegacySubscribeRequest' - responses: - '200': - description: OK - content: - text/plain: - schema: - type: string - # TODO: Review the possible errors of this endpoint - '400': - description: Bad request. - content: - text/plain: - schema: - type: string - '5XX': - description: Unexpected error. - content: - text/plain: - schema: - type: string - -delete: # delete_waku_v2_filter_v1_subscription - summary: Unsubscribe a node from an array of topics - description: Unsubscribe a node from an array of content topics. - operationId: deleteSubscriptions - tags: - - filter - requestBody: - content: - application/json: - schema: - $ref: './schemas/apitypes.yaml#/FilterLegacySubscribeRequest' - responses: - '200': - description: OK - content: - text/plain: - schema: - type: string - # TODO: Review the possible errors of this endpoint - '400': - description: Bad request. - content: - text/plain: - schema: - type: string - '404': - description: Not found. - content: - text/plain: - schema: - type: string - '5XX': - description: Unexpected error. - content: - text/plain: - schema: - type: string diff --git a/api-spec/openapi.yaml b/api-spec/openapi.yaml index 8650344..f8c03b7 100644 --- a/api-spec/openapi.yaml +++ b/api-spec/openapi.yaml @@ -57,10 +57,6 @@ paths: $ref: "./legacystoreapi.yaml" /store/v3/messages: $ref: "./storeapi.yaml" - /filter/v1/subscriptions: - $ref: "./filterapi_v1_subscriptions.yaml" - /filter/v1/messages/{contentTopic}: - $ref: "./filterapi_v1_messages.yaml" /filter/v2/subscriptions/{requestId}: $ref: "./filterapi_v2_subscription_ping.yaml" /filter/v2/subscriptions: diff --git a/api-spec/schemas/apitypes.yaml b/api-spec/schemas/apitypes.yaml index 78c2854..85a48ef 100644 --- a/api-spec/schemas/apitypes.yaml +++ b/api-spec/schemas/apitypes.yaml @@ -39,18 +39,6 @@ PubsubTopic: ContentTopic: type: string -FilterLegacySubscribeRequest: - type: object - properties: - contentFilters: - type: array - items: - $ref: '#/ContentTopic' - pubsubTopic: - $ref: "#/PubsubTopic" - required: - - contentFilters - FilterGetMessagesResponse: type: array items: