11package api
22
3- // AuthRegisterRequest is the definition of POST /v1 /auth/register/.
3+ // AuthRegisterRequest is the definition of POST /v2 /auth/register/.
44type AuthRegisterRequest struct {
55 Username string `json:"username"`
66 Password string `json:"password"`
@@ -9,34 +9,34 @@ type AuthRegisterRequest struct {
99 LastName string `json:"last_name,omitempty"`
1010}
1111
12- // AuthLoginRequest is the definition of POST /v1 /auth/login/.
12+ // AuthLoginRequest is the definition of POST /v2 /auth/login/.
1313type AuthLoginRequest struct {
1414 Username string `json:"username"`
1515 Password string `json:"password"`
1616}
1717
18- // AuthLoginResponse is the definition of /v1 /auth/login/.
18+ // AuthLoginResponse is the definition of /v2 /auth/login/.
1919type AuthLoginResponse tokenResponse
2020
21- // AuthPasswdRequest is the definition of POST /v1 /auth/passwd/.
21+ // AuthPasswdRequest is the definition of POST /v2 /auth/passwd/.
2222type AuthPasswdRequest struct {
2323 Username string `json:"username,omitempty"`
2424 Password string `json:"password,omitempty"`
2525 NewPassword string `json:"new_password"`
2626}
2727
28- // AuthRegenerateRequest is the definition of POST /v1 /auth/tokens/.
28+ // AuthRegenerateRequest is the definition of POST /v2 /auth/tokens/.
2929type AuthRegenerateRequest struct {
3030 Name string `json:"username,omitempty"`
3131 All bool `json:"all,omitempty"`
3232}
3333
34- // AuthCancelRequest is the definition of POST /v1 /auth/cancel/.
34+ // AuthCancelRequest is the definition of POST /v2 /auth/cancel/.
3535type AuthCancelRequest struct {
3636 Username string `json:"username"`
3737}
3838
39- // AuthRegenerateResponse is the definition of /v1 /auth/tokens/.
39+ // AuthRegenerateResponse is the definition of /v2 /auth/tokens/.
4040type AuthRegenerateResponse tokenResponse
4141
4242// A generic defenition of a token response.
0 commit comments