New Function #14
openNew Function #10: {API] 사용자 API 개발 (USER API development)
[API] Docent
Description
1.[API] Docent (Docent excel sheet on #10)
- 1) register docent
- 2) docent list
- 3) delete docent
- 4) docent member
2.Git
- nmkpg_cyber_user
Related issues
Updated by Deca Park about 2 years ago
- Copied from New Function #13: [API] Message/Avatar added
Updated by Deca Park about 2 years ago
- Copied to New Function #15: [API] Exhibit added
Updated by Toby Pham about 2 years ago
- Status changed from In Progress to Resolved
Updated by Toby Pham about 2 years ago
- Assignee changed from Toby Pham to Deca Park
Updated by Deca Park about 2 years ago
- Status changed from Resolved to Feedback
- Assignee changed from Deca Park to Toby Pham
[API Test Issues]
0.Common
1) try catch exception on API controller
a) if exception (refer to other source)
{
log.error(e.getMessage(), e);
return internalServerError();
}
1.POST /docent
1) validate request parameters
a) schedule_date : if value format is 'YYYYMMDDHIMM', server error happens
- check with 'YYYYMMDDHIMMSS' or 'YYYYMMDDHIMM' (date format)
- if it's not valid, return "common.error.inputValue" (but set param value into message ("...입력값: {1}")
b) password_use_flag / add_join_flag
- check if param value is 1 or 0
- if it's not valid, return "common.error.inputValue" (but set param value into message ("...입력값: {1}")
+ currently, message is set like "입력값: Integer".
2.GET /docent_list
1) validate request parameters
a) user_id
- when return "common.error.idNotExist", set param value into message
(currently, it's set like " (아이디: user_id)")
2) response
a) password_use_flag / add_join_flag
- set value by 1/0
- currently, value is set by boolean wrong
b) use_password
- set value by string
- currently, value is set by boolean wrong
3.DELETE /docent
1) validate request parameters
a) docent_seq
- if value is not integer, return "common.error.inputValue" with parameter name & value
4.GET /docent_member
1) validate request parameters
a) docent_seq
- same with No 3-1)-a) (apply Exhibit API > exhibit_seq param too)
2) resonse
a) add_join_flag / ban_flag
- set value by 1/0
- currently, value is set by boolean wrong
Updated by Toby Pham about 2 years ago
- Status changed from Feedback to Resolved
- Assignee changed from Toby Pham to Deca Park