This commit is contained in:
2025-09-17 09:10:31 +02:00
parent 0d0e756125
commit 029936e9ba

View File

@@ -26,9 +26,13 @@ if http_port == 0 {
} else {
println('
#to test the discover function:
curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"rpc.discover","id":1,"params":[]\}\' http://localhost:9933/
\'
')
curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"rpc.discover","id":1,"params":[]\}\' http://localhost:9933
curl -X POST -H "Content-Type: application/json" -d \'\{"jsonrpc":"2.0","method":"comment_set","params":{"comment":"Hello world!","parent":0,"author":42},"id":1\}\' http://localhost:9933
'
)
}
rpc.start(http_port: http_port)!