Skip to content

Instantly share code, notes, and snippets.

@FGasper
Created June 12, 2019 02:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FGasper/3567e5bdab54edaa6ae66b422ac9175e to your computer and use it in GitHub Desktop.
Save FGasper/3567e5bdab54edaa6ae66b422ac9175e to your computer and use it in GitHub Desktop.
OpenRPC demo of a UAPI call
{
"openrpc": "1.0.0-rc1",
"info": {
"title": "cPanel OpenRPC demo",
"version": "0.0.1-rc1"
},
"servers": [
{
"name": "cPanel encrypted",
"url": "http://{domain}:2083/{base_path}"
},
{
"name": "cPanel unencrypted",
"url": "http://{domain}:2082/{base_path}"
}
],
"methods": [
{
"name": "Email::account_name",
"summary": "a summary",
"params": [
{
"name": "account",
"description": "the account name",
"schema": {
"type": "string"
}
},
{
"name": "display",
"description": "some display",
"schema": {
"type": "string"
}
}
],
"result": {
"name": "This is silly.",
"schema": {
"type": "object",
"schema": {
"allOf": [
{
"$ref": "#/components/schemas/result"
}
]
}
}
}
}
],
"components": {
"schemas": {
"result": {
"type": "object"
}
}
}
}
@FGasper
Copy link
Author

FGasper commented Jun 12, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment