Created
June 12, 2019 02:37
-
-
Save FGasper/3567e5bdab54edaa6ae66b422ac9175e to your computer and use it in GitHub Desktop.
OpenRPC demo of a UAPI call
This file contains hidden or 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
{ | |
"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" | |
} | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Plug this into: https://playground.open-rpc.org/