Add service API handler stubs for status, stop and restart (#3417)

This commit is contained in:
Krishnan Parthasarathi
2016-12-16 11:56:15 +05:30
committed by Harshavardhana
parent 8ceb969445
commit b2f920a868
11 changed files with 655 additions and 28 deletions

33
docs/admin-api/service.md Normal file
View File

@@ -0,0 +1,33 @@
# Service REST API
## Authentication
- AWS signatureV4
- We use "minio" as region. Here region is set only for signature calculation.
## List of management APIs
- Service
- Stop
- Restart
- Status
- Locks
- List
- Clear
- Healing
### Service Management APIs
* Stop
- POST /?service
- x-minio-operation: stop
- Response: On success 200
* Restart
- POST /?service
- x-minio-operation: restart
- Response: On success 200
* Status
- GET /?service
- x-minio-operation: status
- Response: On success 200, return json formatted StorageInfo object.