Team Protocol - taeyun-ham/andalos GitHub Wiki

Header

Content-Type : application/json
Authorization : Bearer ~
Accept-Language : ko-KR,ko;q=0.9, en-US;q=0.8, en;q=0.7
  • Authorization : 인증정보
  • Accept-Language : μ–Έμ–΄/μ§€μ—­ 정보

Timezone

  • μ„œλ²„λŠ” λͺ¨λ“  μ‹œκ°„μ„ UTC 둜 μ²˜λ¦¬ν•œλ‹€.
  • μ„œλ²„λŠ” ν΄λΌμ΄μ–ΈνŠΈμ—κ²Œ μ‹œκ°„μ •λ³΄ ν˜•μ‹μ„ UTC ISO String (2024-04-08T09:41:16.733+00:00) 으둜 μ „λ‹¬ν•œλ‹€.
  • ν΄λΌμ΄μ–ΈνŠΈλŠ” λ””λ°”μ΄μŠ€μ˜ νƒ€μž„μ‘΄μ— 맞게 μ„œλ²„μ—μ„œ 받은 μ‹œκ°„μ •λ³΄λ₯Ό λ³€κ²½ν•œλ‹€.

Validation check

  • μœ νš¨μ„± 및 데이터 μ •ν•©μ„± μ²΄ν¬μ‹œ CustomAssert.class λ₯Ό ν™œμš©ν•œλ‹€.
CustomAssert.notNull(userDto.getEmail(), MsgConsts.ERROR_NOT_BLANK, "[email]");
CustomAssert.notNull(userDto.getFirstName(), MsgConsts.ERROR_NOT_BLANK, "[firstName]");
CustomAssert.notNull(userDto.getLastName(), MsgConsts.ERROR_NOT_BLANK, "[lastName]");
CustomAssert.notNull(userDto.getTelNo(), MsgConsts.ERROR_NOT_BLANK, "[email]");