38 lines
870 B
YAML
38 lines
870 B
YAML
get:
|
|
summary: Get connected peers info
|
|
description: Retrieve information about connected peers.
|
|
operationId: getPeerInfo
|
|
tags:
|
|
- admin
|
|
responses:
|
|
'200':
|
|
description: Information about a Waku v2 node.
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: "./schemas/apitypes.yaml#/WakuPeer"
|
|
'5XX':
|
|
description: Unexpected error.
|
|
post:
|
|
summary: Adds new peer(s) to connect with
|
|
description: Adds new peer(s) to connect with.
|
|
operationId: postPeerInfo
|
|
tags:
|
|
- admin
|
|
requestBody:
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
type: string
|
|
responses:
|
|
'200':
|
|
description: Ok
|
|
'400':
|
|
description: Cannot connect to one or more peers.
|
|
'5XX':
|
|
description: Unexpected error.
|