gPanel/pkg/api/server
George Shaw b9f7c5d065 Fix import paths
* github.com/Ennovar/gPanel -> github.com/kentonh/gPanel
2018-09-21 20:13:49 -05:00
..
maintenance.go Fix import paths 2018-09-21 20:13:49 -05:00
README.md issue #63 2017-11-13 16:10:02 -06:00
restart.go Fix import paths 2018-09-21 20:13:49 -05:00
shutdown.go Fix import paths 2018-09-21 20:13:49 -05:00
start.go Fix import paths 2018-09-21 20:13:49 -05:00
status.go Fix import paths 2018-09-21 20:13:49 -05:00

Server API Documentation

/*
Relative API Path:
  api/server/status
Request:
  N/A
Response(200, 405):
  "0" - OFF,
  "1" - ON,
  "2" - "MAINTENANCE",
  "3" - "RESTARTING"
*/
func Status(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/server/start
Request:
  N/A
Response(204, 405, 409):
  N/A
*/
func Start(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/server/shutdown
Request:
  {
    "graceful": boolean
  }
Response(204, 404, 405):
  N/A
*/
func Shutdown(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/server/restart
Request:
  {
    "graceful": boolean
  }
Response(204, 404, 405):
  N/A
*/
func Restart(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/server/maintenance
Request:
  N/A
Response(204, 405):
  N/A
*/
func Maintenance(res http.ResponseWriter, req *http.Request) bool {}