logos-messaging-rest-api/api-spec/adminapi_peers.yaml
2025-04-25 15:01:35 +02:00

47 lines
1.1 KiB
YAML

get:
summary: Get peer info about all peers
description: Retrieve information about all peers.
operationId: getPeerInfo
tags:
- admin
responses:
'200':
description: List of peer info about all peers in peer storage of the node.
content:
application/json:
schema:
type: array
items:
$ref: "./schemas/apitypes.yaml#/WakuPeer"
'500':
description: Internal server error.
content:
text/plain:
type: string
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.
content:
text/plain:
type: string
'5XX':
description: Unexpected error.
content:
text/plain:
type: string