gPanel/pkg/api/user
2017-11-13 16:26:28 -06:00
..
auth.go issue #61 2017-11-13 16:02:35 -06:00
get_secret.go issue #61 2017-11-13 16:02:35 -06:00
logout.go refactored user api and removed some debug things in webhost 2017-11-03 17:23:10 -05:00
README.md generalized user request data readme 2017-11-13 16:26:28 -06:00
register.go issue #61 2017-11-13 16:02:35 -06:00

User API Documentation

/*
Relative API Path:
  api/user/auth
Request:
  {
    "user": string,
    "pass": string,
  }
Response(204, 400, 401, 405, 500):
  N/A
*/
func Auth(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/user/register
Request:
  {
    "user": string,
    "pass": string,
  }
Response (204, 400, 405, 500):
  N/A
*/
func Register(res http.ResponseWriter, req *http.Request) bool {}

/*
Relative API Path:
  api/user/logout
Request:
  N/A
Response (204, 405, 500):
  N/A
*/
func Logout(res http.ResponseWriter, req *http.Request) bool {}