Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] 스터디 검색 기능 구현 #18

Closed
6 tasks done
tco0427 opened this issue Jul 6, 2022 · 2 comments · Fixed by #24
Closed
6 tasks done

[BE] 스터디 검색 기능 구현 #18

tco0427 opened this issue Jul 6, 2022 · 2 comments · Fixed by #24
Assignees
Labels
🖥 backend New backend feature 🚀 feature New feature or request
Milestone

Comments

@tco0427
Copy link
Collaborator

tco0427 commented Jul 6, 2022

요약

스터디를 단순 문자열로 검색하는 기능을 구현한다.

세부 설명

검색 키워드의 앞 뒤 공백을 제거한 문자열을 포함하는 제목을 가진 스터디 목록을 조회할 수 있도록 검색 기능을 구현한다.

  • 페이징 정보(페이지, 사이즈)가 없는 경우에는 기본값을 사용한다.
  • 페이징 정보가 하나라도 없는 경우에는 400을 반환
  • 검색 키워드가 공백 문자열인 경우 페이징 정보에 따라서 전체 목록을 조회한다.
  • 검색 키워드 앞 뒤로 공백이 있는 경우 앞 뒤 공백을 제거하고 조회한다.
    • ex) " 자바 " => "자바"가 포함된 스터디 목록들
  • 검색 키워드가 영어인 경우 대소문자를 구분하지 않는다.
  • 그 외에는 검색 키워드가 포함된 스터디 목록을 조회한다.
    • ex) "자바" => "자바"가 포함된 스터디 목록들
    • ex) "자 바" => "자 바"가 포함된 스터디 목록들
@tco0427 tco0427 added 🚀 feature New feature or request 🖥 backend New backend feature labels Jul 6, 2022
@tco0427 tco0427 added this to the Milestone 1 milestone Jul 6, 2022
@tco0427 tco0427 closed this as completed Jul 6, 2022
@nan-noo nan-noo linked a pull request Jul 7, 2022 that will close this issue
@tco0427
Copy link
Collaborator Author

tco0427 commented Jul 12, 2022

  • 페이징 처리는 0부터 시작한다.
  • 검색시에 영어 대소문자 구분을 하지 않는다.
  • 검색시 공백 처리를 포함하여 검색한다. (ex. "자 바" => "자 바")

@tco0427
Copy link
Collaborator Author

tco0427 commented Jul 12, 2022

예외 사항

  • page, size가 올바른 숫자값이 아닌 경우에는 400 + 에러 메시지를 반환한다.
  • page, size 둘 다 없는 경우에는 defaultpage = 0, size = 5 로 페이징 처리를 해준다.
    • page나 size 둘 중 하나라도 없을 경우에는 예외(400 + 에러 메시지)를 발생시킨다.
  • 검색시 title이 blank인 경우 에러(400 + 에러 메시지)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🖥 backend New backend feature 🚀 feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants