mirror of
https://github.com/logos-messaging/logos-messaging-rest-api.git
synced 2026-01-02 14:03:13 +00:00
47 lines
1.1 KiB
YAML
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
|