mirror of
https://github.com/logos-messaging/logos-messaging-rest-api.git
synced 2026-01-07 16:33:08 +00:00
Remove already depricated and not supported /filter/v1 api to avoid confusion
This commit is contained in:
parent
0c3615f330
commit
1a3316a6c9
@ -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
|
|
||||||
@ -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
|
|
||||||
@ -57,10 +57,6 @@ paths:
|
|||||||
$ref: "./legacystoreapi.yaml"
|
$ref: "./legacystoreapi.yaml"
|
||||||
/store/v3/messages:
|
/store/v3/messages:
|
||||||
$ref: "./storeapi.yaml"
|
$ref: "./storeapi.yaml"
|
||||||
/filter/v1/subscriptions:
|
|
||||||
$ref: "./filterapi_v1_subscriptions.yaml"
|
|
||||||
/filter/v1/messages/{contentTopic}:
|
|
||||||
$ref: "./filterapi_v1_messages.yaml"
|
|
||||||
/filter/v2/subscriptions/{requestId}:
|
/filter/v2/subscriptions/{requestId}:
|
||||||
$ref: "./filterapi_v2_subscription_ping.yaml"
|
$ref: "./filterapi_v2_subscription_ping.yaml"
|
||||||
/filter/v2/subscriptions:
|
/filter/v2/subscriptions:
|
||||||
|
|||||||
@ -39,18 +39,6 @@ PubsubTopic:
|
|||||||
ContentTopic:
|
ContentTopic:
|
||||||
type: string
|
type: string
|
||||||
|
|
||||||
FilterLegacySubscribeRequest:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
contentFilters:
|
|
||||||
type: array
|
|
||||||
items:
|
|
||||||
$ref: '#/ContentTopic'
|
|
||||||
pubsubTopic:
|
|
||||||
$ref: "#/PubsubTopic"
|
|
||||||
required:
|
|
||||||
- contentFilters
|
|
||||||
|
|
||||||
FilterGetMessagesResponse:
|
FilterGetMessagesResponse:
|
||||||
type: array
|
type: array
|
||||||
items:
|
items:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user