mirror of
https://github.com/logos-messaging/logos-messaging-rest-api.git
synced 2026-01-02 22:13:09 +00:00
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
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"
|
|
'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 |