This repository is a starting point for your projects.
Install dependencies:
cd sample-json-rpc-core
yarn install
Run watcher:
yarn dev
Request:
curl -X POST \
http://127.0.0.1:4455/ \
-H 'Content-Type: application/json' \
-H 'cache-control: no-cache' \
-d '{
"method": "users.hello",
"params": {
"name": "Neo"
}
}'
Response:
{
"jsonrpc": "2.0",
"result": "Hello Neo"
}