feat: adding documentation for filter admin endpoint

This commit is contained in:
Gabriel Mermelstein 2024-01-08 17:07:14 +01:00
parent d5ab3e91e3
commit c44b035562
No known key found for this signature in database
GPG Key ID: 306734DDCE542DCD
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