mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-04-21 17:14:44 +00:00
p2p/simulations: update doc of HTTP endpoints (#29894)
This commit is contained in:
parent
c732039a34
commit
b6f2bbd417
1 changed files with 19 additions and 14 deletions
|
|
@ -123,9 +123,14 @@ The API is initialised with a particular node adapter and has the following
|
||||||
endpoints:
|
endpoints:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
OPTIONS / Response 200 with "Access-Control-Allow-Headers"" header set to "Content-Type""
|
||||||
GET / Get network information
|
GET / Get network information
|
||||||
POST /start Start all nodes in the network
|
POST /start Start all nodes in the network
|
||||||
POST /stop Stop all nodes in the network
|
POST /stop Stop all nodes in the network
|
||||||
|
POST /mocker/start Start the mocker node simulation
|
||||||
|
POST /mocker/stop Stop the mocker node simulation
|
||||||
|
GET /mocker Get a list of available mockers
|
||||||
|
POST /reset Reset all properties of a network to initial (empty) state
|
||||||
GET /events Stream network events
|
GET /events Stream network events
|
||||||
GET /snapshot Take a network snapshot
|
GET /snapshot Take a network snapshot
|
||||||
POST /snapshot Load a network snapshot
|
POST /snapshot Load a network snapshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue