2023-10-27 13:01:14 +02:00
|
|
|
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"
|
2025-04-25 03:08:20 +02:00
|
|
|
'500':
|
|
|
|
|
description: Internal server error.
|
|
|
|
|
content:
|
|
|
|
|
text/plain:
|
|
|
|
|
type: string
|
2023-10-27 13:01:14 +02:00
|
|
|
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.
|
2025-04-25 03:08:20 +02:00
|
|
|
content:
|
|
|
|
|
text/plain:
|
|
|
|
|
type: string
|
2023-10-27 13:01:14 +02:00
|
|
|
'5XX':
|
|
|
|
|
description: Unexpected error.
|
2025-04-25 03:08:20 +02:00
|
|
|
content:
|
|
|
|
|
text/plain:
|
|
|
|
|
type: string
|