2024-06-21
This commit is contained in:
41
Writerside/topics/Json-Rpc.md
Normal file
41
Writerside/topics/Json-Rpc.md
Normal file
@@ -0,0 +1,41 @@
|
||||
# JSON-RPC
|
||||
|
||||
## 요청
|
||||
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"method": "doSomething",
|
||||
"params": {
|
||||
...
|
||||
},
|
||||
"id": ...
|
||||
}
|
||||
```
|
||||
|
||||
## 응답
|
||||
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"result" : {
|
||||
...
|
||||
},
|
||||
"id": xxx
|
||||
}
|
||||
```
|
||||
|
||||
### 오류 응답
|
||||
|
||||
```json
|
||||
{
|
||||
"jsonrpc": "2.0",
|
||||
"error" : {
|
||||
"code": xx,
|
||||
"message": "xxx"
|
||||
},
|
||||
"id": xxx
|
||||
}
|
||||
```
|
||||
|
||||
https://www.jsonrpc.org/
|
||||
Reference in New Issue
Block a user