-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(rest-api-store): new rest api to retrieve store waku messages (#…
…1611) (#1630) * feat: new rest api based on the current store json-rpc api and following the same structure as the current relay rest api. * feat: the store api attend GET requests to retrieve historical messages * feat: unit tests. * feat: allow return message to rest-client in case error (4XX or 5XX) * chore: always allow to call the store api endpoints (only rest) without explicit storenode (#1575) * feat: always mounting the current node as storenode client
- Loading branch information
1 parent
9dadc1f
commit b2acb54
Showing
13 changed files
with
1,505 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
|
||
# Configure a REST API node | ||
|
||
A subset of the node configuration can be used to modify the behaviour of the HTTP REST API. | ||
|
||
These are the relevant command line options: | ||
|
||
| CLI option | Description | Default value | | ||
|------------|-------------|---------------| | ||
|`--rest` | Enable Waku REST HTTP server. | `false` | | ||
|`--rest-address` | Listening address of the REST HTTP server. | `127.0.0.1` | | ||
|`--rest-port` | Listening port of the REST HTTP server. | `8645` | | ||
|`--rest-relay-cache-capacity` | Capacity of the Relay REST API message cache. | `30` | | ||
|`--rest-admin` | Enable access to REST HTTP Admin API. | `false` | | ||
|`--rest-private` | Enable access to REST HTTP Private API. | `false` | | ||
|
||
Note that these command line options have their counterpart option in the node configuration file. | ||
|
||
Example: | ||
|
||
```shell | ||
wakunode2 --rest=true | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.