gPanel/pkg/api/user/README.md
2017-11-13 16:26:28 -06:00

39 lines
598 B
Markdown

# User API Documentation
```go
/*
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 {}
```