remove API.md

This commit is contained in:
jysperm
2014-11-06 00:35:38 +08:00
parent 783d288872
commit f6c39b411d
6 changed files with 0 additions and 159 deletions

View File

@@ -1,16 +0,0 @@
## Memcached Plugin API
### POST /plugin/memcached/switch
Request:
{
"enable": true
}
No Response.
Exception:
* not_in_service
* invalid_enable

View File

@@ -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

View File

@@ -1,16 +0,0 @@
## MySQL Plugin API
### POST /plugin/mysql/update_password/
Request:
{
"password": "123123"
}
No Response.
Exception:
* invalid_password
* not_in_service

View File

@@ -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

View File

@@ -1,16 +0,0 @@
## PHP-FPM Plugin API
### POST /plugin/phpfpm/switch
Request:
{
"enable": true
}
No Response.
Exception:
* not_in_service
* invalid_enable

View File

@@ -1,16 +0,0 @@
## Redis Plugin API
### POST /plugin/redis/switch
Request:
{
"enable": true
}
No Response.
Exception:
* not_in_service
* invalid_enable