-
Notifications
You must be signed in to change notification settings - Fork 8
/
service-mode-openrpc.json
54 lines (54 loc) · 1.52 KB
/
service-mode-openrpc.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{
"openrpc": "1.0.0",
"info": {
"version": "1.0.0",
"title": "OpenRPC Mock Service",
"description": "The Official OpenRPC Mock Server-As-A-Service",
"license": {
"name": "Apache 2.0",
"url": "https://www.apache.org/licenses/LICENSE-2.0.html"
}
},
"servers": [
{
"name": "production",
"url": "https://mock.open-rpc.org"
}
],
"methods": [
{
"name": "mock",
"description": "Provides a mock server for the given OpenRPC document. This mock lasts 15 minutes before being destroyed.",
"summary": "Provides a mock server for the given OpenRPC document.",
"params": [
{
"name": "document",
"required": true,
"description": "The OpenRPC Document you want to mock.",
"summary": "an OpenRPC document to mock",
"schema": {
"title": "OpenRPC Document",
"description": "an open rpc document as defined by https://spec.open-rpc.org."
}
}
],
"result": {
"name": "mockServerPath",
"description": "The path to append to the url to get your mock server.",
"summary": "The path to append to the url to get your mock server.",
"schema": {
"title": "mockServerPath",
"type": "string"
}
}
}
],
"components": {
"schemas": {
"OpenRPCDocument": {
"title": "OpenRPC Document",
"description": "an open rpc document as defined by https://spec.open-rpc.org."
}
}
}
}