mirror of
https://github.com/HackPlan/RootPanel.git
synced 2026-04-24 03:35:59 +08:00
remove API.md
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
## Memcached Plugin API
|
||||
|
||||
### POST /plugin/memcached/switch
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"enable": true
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* not_in_service
|
||||
* invalid_enable
|
||||
@@ -1,40 +0,0 @@
|
||||
## MongoDB Plugin API
|
||||
|
||||
### POST /plugin/mongodb/update_password
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"password": "123123"
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* invalid_password
|
||||
* not_in_service
|
||||
|
||||
### POST /plugin/mongodb/create_database
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"name": "jysperm_test"
|
||||
}
|
||||
|
||||
Exception:
|
||||
|
||||
* invalid_name
|
||||
|
||||
### POST /plugin/mongodb/delete_database
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"name": "jysperm_test"
|
||||
}
|
||||
|
||||
Exception:
|
||||
|
||||
* invalid_name
|
||||
@@ -1,16 +0,0 @@
|
||||
## MySQL Plugin API
|
||||
|
||||
### POST /plugin/mysql/update_password/
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"password": "123123"
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* invalid_password
|
||||
* not_in_service
|
||||
@@ -1,55 +0,0 @@
|
||||
## Nginx Plugin API
|
||||
|
||||
### GET /plugin/nginx/site_config
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"id": "53c96734c2dad7d6208a0fbe"
|
||||
}
|
||||
|
||||
Response:
|
||||
|
||||
{
|
||||
"id": "53c96734c2dad7d6208a0fbe",
|
||||
"listen": 80,
|
||||
"server_name": ["domain1.com", "domain2.net"],
|
||||
"auto_index": false,
|
||||
"index": ["index.html"],
|
||||
"root": "/home/user/web",
|
||||
"location": {
|
||||
"/": {
|
||||
"fastcgi_pass": "unix:///home/user/phpfpm.sock",
|
||||
"fastcgi_index": ["index.php"]
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### POST /plugin/nginx/update_site
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"action": "create/update/delete",
|
||||
// only when update and delete
|
||||
"id": "525284cc2cebb6d0008b4567",
|
||||
"type": "guide/json/nginx",
|
||||
"config": <Object>
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* not_in_service
|
||||
* invalid_action
|
||||
* invalid_type
|
||||
* forbidden
|
||||
|
||||
* invalid_listen
|
||||
* invalid_server_name
|
||||
* invalid_index
|
||||
* invalid_root
|
||||
* invalid_location
|
||||
* invalid_fastcgi_index
|
||||
* invalid_fastcgi_pass
|
||||
@@ -1,16 +0,0 @@
|
||||
## PHP-FPM Plugin API
|
||||
|
||||
### POST /plugin/phpfpm/switch
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"enable": true
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* not_in_service
|
||||
* invalid_enable
|
||||
@@ -1,16 +0,0 @@
|
||||
## Redis Plugin API
|
||||
|
||||
### POST /plugin/redis/switch
|
||||
|
||||
Request:
|
||||
|
||||
{
|
||||
"enable": true
|
||||
}
|
||||
|
||||
No Response.
|
||||
|
||||
Exception:
|
||||
|
||||
* not_in_service
|
||||
* invalid_enable
|
||||
Reference in New Issue
Block a user