Project

General

Profile

Actions

New Function #14

open

New Function #10: {API] 사용자 API 개발 (USER API development)

[API] Docent

Added by Deca Park over 1 year ago. Updated over 1 year ago.

Status:
Resolved
Priority:
Normal
Assignee:
Start date:
02/09/2023
Due date:
% Done:

0%

Estimated time:
Spent time:

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

Copied from New Function #13: [API] Message/AvatarIn ProgressDeca Park02/09/2023

Actions
Copied to New Function #15: [API] ExhibitResolvedDeca Park02/09/2023

Actions
Actions #1

Updated by Deca Park over 1 year ago

Actions #2

Updated by Toby Pham over 1 year ago

  • Status changed from New to In Progress
Actions #3

Updated by Deca Park over 1 year ago

Actions #4

Updated by Toby Pham over 1 year ago

  • Status changed from In Progress to Resolved
Actions #5

Updated by Toby Pham over 1 year ago

  • Assignee changed from Toby Pham to Deca Park
Actions #6

Updated by Deca Park over 1 year 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

Actions #7

Updated by Toby Pham over 1 year ago

  • Status changed from Feedback to Resolved
  • Assignee changed from Toby Pham to Deca Park
Actions

Also available in: Atom PDF