gPanel/pkg/api/user
2018-04-24 19:40:27 +05:30
..
auth.go referencing #129, removed usage of gorilla/sessions and gorilla/context within code 2018-01-22 17:03:29 -06:00
delete.go deleting server users now works 2017-12-01 16:17:16 -06:00
get_secret.go server now checks for users and sets default user accordingly. did some package management for code readability in gpserver. also pulled the struct literals out of pkg/api/user and made it into a type in the database package. 2017-12-05 13:00:05 -06:00
list.go adding new users to server now works in panel 2017-12-01 15:05:32 -06:00
logout.go referencing #129, removed usage of gorilla/sessions and gorilla/context within code 2018-01-22 17:03:29 -06:00
README.md generalized user request data readme 2017-11-13 16:26:28 -06:00
register.go password length (>=8) 2018-04-24 19:40:27 +05:30
update_password.go server now checks for users and sets default user accordingly. did some package management for code readability in gpserver. also pulled the struct literals out of pkg/api/user and made it into a type in the database package. 2017-12-05 13:00:05 -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 {}