Merge pull request #4 from waku-org/feat-adding-filter-admin-endpoint
feat: adding documentation for filter admin endpoint
This commit is contained in:
commit
ab4eddf9a7
|
@ -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.
|
|
@ -29,6 +29,8 @@ tags:
|
||||||
paths:
|
paths:
|
||||||
/admin/v1/peers:
|
/admin/v1/peers:
|
||||||
$ref: "./adminapi.yaml"
|
$ref: "./adminapi.yaml"
|
||||||
|
/admin/v1/filter/subscriptions:
|
||||||
|
$ref: "./adminapi_filter.yaml"
|
||||||
/debug/v1/info:
|
/debug/v1/info:
|
||||||
$ref: "./debugapi_info.yaml"
|
$ref: "./debugapi_info.yaml"
|
||||||
/debug/v1/version:
|
/debug/v1/version:
|
||||||
|
|
|
@ -187,3 +187,24 @@ HistoryCursor:
|
||||||
- senderTime
|
- senderTime
|
||||||
- storeTime
|
- storeTime
|
||||||
- digest
|
- 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
|
||||||
|
|
Loading…
Reference in New Issue