HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
♥️
2기 최종 프로젝트 팀별 공간
/
💸
10원모아10조❗️
/
📽️
API 명세
/
검색 API

검색 API

Method
GET
API 연결여부
API 연결여부
담당자
윌리엄
비올레
작업여부
작업여부
인증 필요
인증 필요
URL
/account-book/search ?categories=1,2,3 &minprice=0 &maxprice=20000 &start=2022-10-22 &end=2022-10-30 &content=내용 &size=2 &page=1
Default 쿼리파라미터 값
  • categories : 해당 유저가 가지고 있는 모든 카테고리
  • minprice : 등록할 수 있는 최소 금액(1원)
  • maxprice: 등록할 수 있는 최대 금액(1조)
  • start: 2000년 1월 1일
  • end : 3000년 12월 31일
  • content : “” — 빈 스트링
  • size : 10
  • page : 1
Example Response Body:
{ "results": [ { "registerTime": "2022-08-31T22:21:00", "amount": 10000, "content": "점심지출", "id": 1, // expenditure, Income의 id "type": "EXPENDITURE", "categoryName": "식비" }, { "registerTime": "2022-08-31T22:21:00" "amount": 20000, "content": "저녁지출", "id": 3, // expenditure, Income의 id "type": "EXPENDITURE", "categoryName": "식비" }, { "registerTime": "2022-08-31T22:21:00" "amount": 20000, "content": "수입", "id": 4, // expenditure, Income의 id "type": "INCOME", "categoryName": "월급" }, ... ] "currentPage": 1, "nextPage": null "totalPages": 1 "totalElements": 3 }
  • 시간을 이용하여 정렬한 후 보내는 registerDate는 날짜까지만
  • totalCount는 해당 검색 조건에 대한 전체 결과. results는 paging 요청에 대한 응답값
    Response Code
    200