UserAPI
- Description:
UserAPI namespace
- See:
-
- TUser in Models.User
Methods
(static) *common(req, res)
Parameters:
Name | Type | Description |
---|---|---|
req |
Object | |
res |
Object |
Throws:
status | message | description |
---|---|---|
404 | USER_NOT_FOUND | if user is not found |
(static) CGoogleAuth API(req, res)
- Description:
구글 로그인 활성화 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||
res |
Object |
Properties
|
Throws:
status | message | description |
---|---|---|
400 | EMAIL_INVALID | if email is invalid |
409 | EMAIL_CONNECTED_ALREADY | if email is already connected |
409 | EMAIL_IN_USE | if email is in use |
(static) CUser API(req, res)
- Description:
사용자 생성 API
- Version:
- 2.0.0
- See:
-
- Models.User for validation
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
res |
Object |
Properties
|
Throws:
status | message | description |
---|---|---|
409 | USERID_IN_USE | if userId is in use |
409 | SNSID.GOOGLE_IN_USE | if snsId.google is in use |
(static) CUserSchool API(req, res)
- Description:
소속 학교 추가 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||
res |
Object |
Properties
|
Throws:
status | message | description |
---|---|---|
409 | SCHOOL_CONNECTED_ALREADY | if user already registered to school |
(static) DGoogleAuth API(req, res)
- Description:
구글 로그인 비활성화 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||
res |
Object |
Properties
|
Throws:
status | message | description |
---|---|---|
409 | EMAIL_DISCONNECTED_ALREADY | if email is already connected |
(static) DUser API(req, res)
- Description:
사용자 삭제 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||||||||
res |
Object | returns nothing |
Throws:
status | message | description |
---|---|---|
409 | SCHOOL_DISCONNECTED_ALREADY | if user already deregistered to school |
(static) DUserSchool API(req, res)
- Description:
소속 학교 삭제 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||
res |
Object |
Properties
|
Throws:
status | message | description |
---|---|---|
409 | SCHOOL_DISCONNECTED_ALREADY | if user already deregistered to school |
(static) LocalGoogle API(req, res)
- Description:
구글 로그인 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||||||||||||||||||
res |
Object |
Throws:
status | message | description |
---|---|---|
401 | ACADEMY_NOT_FOUND | if academy is not found |
401 | ACADEMY_INACTIVATED | if academy is inactivated |
401 | USER_NOT_FOUND | if user is not found |
401 | PASSWORD_INCORRECT | if password is incorrect |
(static) LocalLogin API(req, res)
- Description:
로컬 로그인 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||||||||||||||||||||||
res |
Object |
Throws:
status | message | description |
---|---|---|
401 | ACADEMY_NOT_FOUND | if academy is not found |
401 | ACADEMY_INACTIVATED | if academy is inactivated |
401 | USER_NOT_FOUND | if user is not found |
401 | PASSWORD_INCORRECT | if password is incorrect |
(static) Logout API(req, res)
- Description:
로그아웃 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||
res |
Object |
(static) RMySelf API(req, res)
- Description:
본인 조회 API; registrations와 함께 반환함
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||
res |
Object |
Properties
|
(static) RUserAPI API(req, res)
- Description:
사용자 조회 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||
res |
Object |
Properties
|
(static) RUserProfile API(req, res)
- Description:
사용자 프로필사진 조회 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
||||||||||||
res |
Object |
Properties
|
(static) RUsersAPI API(req, res)
- Description:
사용자 목록 조회 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||||||
res |
Object |
Properties
|
Throws:
(static) UUserAuth API(req, res)
- Description:
등급 변경 API; admin이 사용자 등급을 manager 또는 member로 수정할 수 있다.
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||
res |
Object |
Properties
|
(static) UUserCalendar API(req, res)
- Description:
캘린더 변경 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||
res |
Object |
Properties
|
(static) UUserEmail API(req, res)
- Description:
이메일 변경 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||
res |
Object |
Properties
|
(static) UUserPassword API(req, res)
- Description:
비밀번호 변경 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||
res |
Object |
(static) UUserProfile API(req, res)
- Description:
프로필 사진 변경 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||
res |
Object |
Properties
|
(static) UUserTel API(req, res)
- Description:
전화번호 변경 API
- Version:
- 2.0.0
Parameters:
Name | Type | Description | |||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
req |
Object |
Properties
|
|||||||||||||||||||||||
res |
Object |
Properties
|