2022-06-15 13:02:02 +00:00
|
|
|
openapi: 3.0.3
|
2022-06-02 09:45:00 +00:00
|
|
|
info:
|
2023-02-13 14:22:24 +00:00
|
|
|
title: Waku V2 node REST API
|
2022-06-02 09:45:00 +00:00
|
|
|
version: 1.0.0
|
2022-06-15 13:02:02 +00:00
|
|
|
contact:
|
|
|
|
name: VAC Team
|
|
|
|
url: https://forum.vac.dev/
|
|
|
|
|
|
|
|
tags:
|
|
|
|
- name: debug
|
|
|
|
description: Debug REST API for WakuV2 node
|
2022-06-02 09:45:00 +00:00
|
|
|
|
|
|
|
paths:
|
|
|
|
/debug/v1/info:
|
|
|
|
get:
|
|
|
|
summary: Get node info
|
|
|
|
description: Retrieve information about a Waku v2 node.
|
2022-06-15 13:02:02 +00:00
|
|
|
operationId: getNodeInfo
|
2022-06-02 09:45:00 +00:00
|
|
|
tags:
|
2022-06-15 13:02:02 +00:00
|
|
|
- debug
|
2022-06-02 09:45:00 +00:00
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: Information about a Waku v2 node.
|
|
|
|
content:
|
|
|
|
application/json:
|
|
|
|
schema:
|
|
|
|
$ref: '#/components/schemas/WakuInfo'
|
2023-02-13 14:22:24 +00:00
|
|
|
'4XX':
|
|
|
|
description: Bad request error.
|
|
|
|
'5XX':
|
|
|
|
description: Unexpected error.
|
|
|
|
|
|
|
|
/debug/v1/version:
|
|
|
|
get:
|
|
|
|
summary: Get node version
|
|
|
|
description: Retrieve the Waku v2 node version.
|
|
|
|
operationId: getNodeVersion
|
|
|
|
tags:
|
|
|
|
- debug
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
description: The version of a Waku v2 node.
|
|
|
|
content:
|
|
|
|
text/plain:
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
'4XX':
|
|
|
|
description: Bad request error.
|
2022-06-02 09:45:00 +00:00
|
|
|
'5XX':
|
|
|
|
description: Unexpected error.
|
|
|
|
|
|
|
|
components:
|
|
|
|
schemas:
|
|
|
|
WakuInfo:
|
|
|
|
type: object
|
|
|
|
properties:
|
|
|
|
listenAddresses:
|
|
|
|
type: array
|
|
|
|
items:
|
|
|
|
type: string
|
|
|
|
enrUri:
|
|
|
|
type: string
|
|
|
|
required:
|
|
|
|
- listenAddresses
|