gPanel/pkg/api/user
2017-11-06 11:54:12 -06:00
..
auth.go referencing issue #57 2017-11-06 11:43:26 -06:00
get_secret.go refactored user api and removed some debug things in webhost 2017-11-03 17:23:10 -05:00
logout.go refactored user api and removed some debug things in webhost 2017-11-03 17:23:10 -05:00
README.md referencing issue #59 2017-11-06 11:54:12 -06:00
register.go refactored user api and removed some debug things in webhost 2017-11-03 17:23:10 -05:00
user.go added jwt authentication 2017-11-03 17:18:26 -05:00

User API Documentation

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

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

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