-
-
Save zcstarr/961f861dcc711a647297c4ca1c945b14 to your computer and use it in GitHub Desktop.
OpenRPC ServiceRunner v0 - starting spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"info": { | |
"title": "something", | |
"version": "44" | |
}, | |
"methods": [{ | |
"name": "installService", | |
"params": [{ | |
"name": "serviceName", | |
"schema": { | |
"type": "string" | |
} | |
}, | |
{ | |
"name": "version", | |
"schema": { | |
"type": "string" | |
} | |
} | |
], | |
"result": { | |
"name": "installSuccess", | |
"schema": { | |
"type": "boolean" | |
} | |
} | |
}, | |
{ | |
"name": "listInstalledServices", | |
"params": [], | |
"result": { | |
"name": "installedServices", | |
"schema": { | |
"type": "array", | |
"items" : { | |
"type": "string" | |
} | |
} | |
} | |
}, | |
{ | |
"name": "listRunningServices", | |
"params": [], | |
"result": { | |
"name": "runningServices", | |
"schema": { | |
"type": "array", | |
"items": { | |
"type": "object", | |
"properties": { | |
"type": { | |
"type": "array", | |
"items": { | |
"anyOf": [{ | |
"type": "string", | |
"pattern": "^http$" | |
}, | |
{ | |
"type": "string", | |
"pattern": "^https$" | |
}, | |
{ | |
"type": "string", | |
"pattern": "^ws$" | |
} | |
] | |
} | |
} | |
}, | |
"host": { | |
"type": "string" | |
}, | |
"port": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"environment": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
}, | |
{ | |
"name": "startService", | |
"params": [], | |
"result": { | |
"name": "serviceConfig", | |
"schema": { | |
"type": "object", | |
"properties": { | |
"type": { | |
"type": "array", | |
"items": { | |
"anyOf": [{ | |
"type": "string", | |
"pattern": "^http$" | |
}, | |
{ | |
"type": "string", | |
"pattern": "^https$" | |
}, | |
{ | |
"type": "string", | |
"pattern": "^ws$" | |
} | |
] | |
} | |
}, | |
"host": { | |
"type": "string" | |
}, | |
"port": { | |
"type": "integer" | |
}, | |
"name": { | |
"type": "string" | |
}, | |
"environment": { | |
"type": "string" | |
} | |
} | |
} | |
} | |
} | |
], | |
"openrpc": "1.0.0-rc0" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment