SWM-99-degree / jariBean

SWM 14th JariBean Project
0 stars 1 forks source link

[TEST] postMan -> 서버 API 테스트 #97

Open psy-choi opened 1 year ago

psy-choi commented 1 year ago

✏️ Description

postAPI 테스트 진행

🛠 Features

psy-choi commented 1 year ago

/api/home/reserve

image

psy-choi commented 1 year ago

api/home/best

CafeCount - > count로 field 명 변경

GroupOperation groupOperation = Aggregation.group("cafeId").count().as("count");
        SortOperation sortByCountDesc = Aggregation.sort(Sort.Direction.DESC, "count");
        SkipOperation skipOperation = Aggregation.skip(pageable.getOffset());
        LimitOperation limitOperation = Aggregation.limit(pageable.getPageSize());
        Aggregation aggregation = Aggregation.newAggregation(groupOperation, sortByCountDesc, skipOperation, limitOperation);

        AggregationResults<CafeCount> results = mongoTemplate.aggregate(aggregation, "matching", CafeCount.class);

        List<String> cafeList = new ArrayList<>();
image
psy-choi commented 1 year ago

GET /api/matching

의존성 주입 이후 해결

image