2022-05-17-TIL

Today I Learned

Boolean Field in API

  • https://medium.com/geekculture/why-you-shouldnt-use-booleans-in-rest-apis-2747b187876c

MyBatis Paging with PageHelper

  • https://oingdaddy.tistory.com/329

MyBatis vs Spring JDBC

  • https://hello-bryan.tistory.com/335

REST API Response를 권한에 따라 다르게 내려주는 방법

  1. API URL 엔드포인트를 분리 -> 가장 깔끔하다.
  2. 컨트롤러 계층에서 권한을 검사한 후 권한에 맞는 서비스 메서드 호출 -> API를 간결하게 유지하면서 BE 코드만 복잡해진다.
  3. 서비스에서 사용자 권한을 검사한 후 권한에 맞는 레파지토리 메서드를 호출 -> 메서드 중복을 최대한 줄일 수 있다.
  • https://okky.kr/article/1118179

AMQP

  • https://www.amqp.org/