mirror of https://github.com/vacp2p/rfc.git
Formatting improvements
This commit is contained in:
parent
415a4979be
commit
4109a6ff76
|
@ -80,7 +80,7 @@ The following structured types are defined for use throughout the document:
|
||||||
| Field | Type | Inclusion | Description |
|
| Field | Type | Inclusion | Description |
|
||||||
| ----: | :--: | :--: |----------- |
|
| ----: | :--: | :--: |----------- |
|
||||||
| `messages` | `Array`[[`WakuMessage`](#WakuMessage)] | mandatory | Array of retrieved historical messages |
|
| `messages` | `Array`[[`WakuMessage`](#WakuMessage)] | mandatory | Array of retrieved historical messages |
|
||||||
| `pagingInfo` | [`PagingInfo`](#PagingInfo) | conditional | Paging information from which to resume further historical queries |
|
| `pagingInfo` | [`PagingInfo`](#PagingInfo) | [conditional](#store-api) | Paging information from which to resume further historical queries |
|
||||||
|
|
||||||
#### PagingInfo
|
#### PagingInfo
|
||||||
|
|
||||||
|
@ -125,7 +125,7 @@ The `get_waku_v2_debug_info` method retrieves information about a Waku v2 node
|
||||||
none
|
none
|
||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
- [**WakuInfo**](#WakuInfo) - information about a Waku v2 node
|
- [**`WakuInfo`**](#WakuInfo) - information about a Waku v2 node
|
||||||
|
|
||||||
### Relay API
|
### Relay API
|
||||||
|
|
||||||
|
@ -138,7 +138,7 @@ The `post_waku_v2_relay_publish` method publishes a message on a [PubSub `topic`
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
- **`String`** - the [PubSub `topic`](https://github.com/libp2p/specs/blob/master/pubsub/README.md#the-topic-descriptor) being published on
|
- **`String`** - the [PubSub `topic`](https://github.com/libp2p/specs/blob/master/pubsub/README.md#the-topic-descriptor) being published on
|
||||||
- [**WakuMessage**](#WakuMessage) - the `message` to publish
|
- [**`WakuMessage`**](#WakuMessage) - the `message` to publish
|
||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
|
|
||||||
|
@ -154,11 +154,11 @@ The `get_waku_v2_store_query` method retrieves historical messages on specific c
|
||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
- [**HistoryQuery**](#HistoryQuery) - the history `query` to perform. This query MAY be called with [`PagingInfo`](#PagingInfo), to retrieve historical messages on a per-page basis.
|
- [**`HistoryQuery`**](#HistoryQuery) - the history `query` to perform. This query MAY be called with [`PagingInfo`](#PagingInfo), to retrieve historical messages on a per-page basis.
|
||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
|
|
||||||
- [**HistoryResponse**](#HistoryResponse) - the response to a history `query`. If the `query` included [`PagingInfo`](#PagingInfo), the node MUST return messages on a per-page basis and include [`PagingInfo`](#PagingInfo) in the response. This [`PagingInfo`](#PagingInfo) MUST contain a `cursor` pointing to the [`Index`](#Index) from which a new page can be requested.
|
- [**`HistoryResponse`**](#HistoryResponse) - the response to a history `query`. If the `query` included [`PagingInfo`](#PagingInfo), the node MUST return messages on a per-page basis and include [`PagingInfo`](#PagingInfo) in the response. This [`PagingInfo`](#PagingInfo) MUST contain a `cursor` pointing to the [`Index`](#Index) from which a new page can be requested.
|
||||||
|
|
||||||
### Filter API
|
### Filter API
|
||||||
|
|
||||||
|
@ -170,7 +170,7 @@ The `post_waku_v2_filter_subscribe` method subscribes to receive notifications f
|
||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
- [**FilterRequest**](#FilterRequest) - filter criteria being subscribed to.
|
- [**`FilterRequest`**](#FilterRequest) - filter criteria being subscribed to.
|
||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
|
|
||||||
|
@ -182,7 +182,7 @@ The `post_waku_v2_filter_unsubscribe` method unsubscribes from notifications for
|
||||||
|
|
||||||
##### Parameters
|
##### Parameters
|
||||||
|
|
||||||
- [**FilterRequest**](#FilterRequest) - filter criteria being unsubscribed from.
|
- [**`FilterRequest`**](#FilterRequest) - filter criteria being unsubscribed from.
|
||||||
|
|
||||||
##### Response
|
##### Response
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue