gPanel/pkg/api/server/README.md
2017-11-06 12:10:47 -06:00

751 B

Server API Documentation

/*
Relative API Path:
  api/server/status
Request:
  N/A
Response():
  N/A
*/
func Status(res http.ResponseWriter, req *http.Request) bool

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

/*
Relative API Path:
  api/server/Shutdown
Request:
  N/A
Response():
  N/A
*/
func Shutdown(res http.ResponseWriter, req *http.Request) bool

/*
Relative API Path:
  api/server/Restart
Request:
  N/A
Response():
  N/A
*/
func Restart(res http.ResponseWriter, req *http.Request) bool

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