Merge pull request #4 from waku-org/feat-adding-filter-admin-endpoint

feat: adding documentation for filter admin endpoint
This commit is contained in:
gabrielmer 2024-01-10 09:42:26 +01:00 committed by GitHub
commit ab4eddf9a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,19 @@
get:
summary: Get filter protocol subscribers
description: Retrieve information about the serving filter subscriptions
operationId: getFilterInfo
tags:
- admin
responses:
'200':
description: Information about subscribed filter peers and topics
content:
application/json:
schema:
type: array
items:
$ref: "./schemas/apitypes.yaml#/FilterSubscription"
'400':
description: Filter Protocol is not mounted to the node
'5XX':
description: Unexpected error.

View File

@ -29,6 +29,8 @@ tags:
paths:
/admin/v1/peers:
$ref: "./adminapi.yaml"
/admin/v1/filter/subscriptions:
$ref: "./adminapi_filter.yaml"
/debug/v1/info:
$ref: "./debugapi_info.yaml"
/debug/v1/version:

View File

@ -187,3 +187,24 @@ HistoryCursor:
- senderTime
- storeTime
- digest
FilterSubscription:
type: object
required:
- peerId
- filterCriteria
properties:
peerId:
type: string
filterCriteria:
type: array
items:
type: object
required:
- pubsubTopic
- contentTopic
properties:
pubsubTopic:
type: string
contentTopic:
type: string