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

[DEV_BE] 도서검색 관련 API 구성 #21

Merged
merged 19 commits into from Jul 5, 2023

Conversation

yymin1022
Copy link
Contributor

Summary

Back-End의 도서검색 관련 API를 구성하였습니다.

Description

  • 이후 타 API 작업 시, Firebase 관련 연동의 편의를 위해 FirebaseUtil을 구성하였습니다. 이는 Client에게 전달되지 않는 Server 항목으로, 기존에 타 프로젝트에서 활용했던 자료를 기반으로 구현하였습니다.

  • 국방도서관 자료검색을 구현하였습니다. /api/book/getMilLibraryBook/키워드의 형태로 GET 요청을 전송하면, 해당 키워드가 제목에 속한 도서의 정보 리스트가 반환됩니다. 이 과정에서, Firebase Query를 활용하고자 하였으나, String 자료형에서의 Contain을 검사하는 Query가 불가한 관계로, Back-End 코드상에서 구현하였습니다.

  • 네이버 도서검색을 구현하였습니다. /api/book/getNaverBook/키워드의 형태로 GET 요청을 전송하면, 해당 키워드가 제목에 속한 도서의 정보 리스트가 반환됩니다.

  • 각 두 함수의 응답 형식은 다음과 같습니다.

{
  "RESULT_CODE": 200,
  "RESULT_MSG": "Success",
  "RESULT_DATA": {
    "data": [
      {
        "author": "길벗R&D",
        "publisher": "길벗",
        "title": "2023 시나공 워드프로세서 실기 (자동 채점 프로그램)"
      },
      {
        "author": "길벗R&D",
        "publisher": "길벗",
        "title": "2023 시나공 워드프로세서 실기 (자동 채점 프로그램)"
      }
    ]
  }
}

@yymin1022 yymin1022 self-assigned this Jul 4, 2023
@yymin1022 yymin1022 added the dev Development label Jul 4, 2023
@yymin1022 yymin1022 linked an issue Jul 4, 2023 that may be closed by this pull request
Copy link
Contributor

@rdg1029 rdg1029 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

와! 수고하셨읍니다

Copy link
Contributor

@HarenKei HarenKei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨읍니다!

@yymin1022 yymin1022 merged commit bb7d6aa into DefCon-Apps:main Jul 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Development
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

[DEV_BE] 도서검색 관련 API 구성
3 participants