feat : Mock API 컨트롤러 및 Response mock 메서드 구현#455
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📋 Summary
프론트엔드 개발 및 테스트를 위한 Mock API 엔드포인트를 추가했습니다.
인증 없이 사용 가능하며, 실제 API와 동일한 응답 형식을 제공합니다.
🎯 목적
🔗 제공 엔드포인트
1. 리포트 조회
GET /api/mock/notes/report응답 예시:
{ "isSuccess": true, "code": "COMMON200", "message": "성공입니다.", "result": { "reportDTO": { "reportId": 1, "indoorKeyWord": "상당히 쾌적한 실내", "publicSpaceKeyWord": "훌륭한 공용 공간", "locationConditionsWord": "좋은 편인 입지 조건", "indoorRate": 4.6, "publicSpaceRate": 4.3, "locationConditionsRate": 4.7, "totalRate": 4.5 }, "limjangDto": { "limjangId": 1, "checkListVersion": "LIMJANG", "images": [ "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_1.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_2.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_3.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_4.jpeg" ], "purposeCode": 1, "nickname": "우성 아파트", "priceType": 0, "priceList": [ "500000000" ], "address": "서울특별시 강남구 테헤란로 123", "addressDetail": "101동 1001호", "createdAt": "2024-11-15T10:30:00", "updatedAt": "2024-11-20T14:20:00" } } }2. 녹음 및 메모 조회
GET /api/mock/notes/records응답 예시:
{ "isSuccess": true, "code": "COMMON200", "message": "성공입니다.", "result": { "limjangId": 1, "memo": "- 베란다 확장 공사 완료. 냉기 차단 잘 됨 \n - 단지내 어린이집", "createdAt": "2024-11-15T10:30:00", "updatedAt": "2024-11-20T17:00:00", "recordDto": [] } }3. 최근 임장 조회
GET /api/mock/notes/recent응답 예시:
{ "isSuccess": true, "code": "COMMON200", "message": "성공입니다.", "result": { "recentUpdatedList": [ { "limjangId": 1, "priceType": 0, "image": "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_1.jpeg", "nickname": "우성 아파트", "price": "3010000000", "totalAverage": "4.5", "address": "" } ] } }4. 마이노트 목록 조회
응답 예시:
{ "isSuccess": true, "code": "COMMON200", "message": "성공입니다.", "result": { "notes": [ { "noteId": 1, "purposeType": "RESIDENTIAL_PURPOSE", "propertyType": "APARTMENT", "priceType": "SALE", "name": "우성 아파트", "imageUrl": [ "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_1.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock_png_2.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock_png_3.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock_png_4.jpeg" ], "isScraped": true, "rate": "3.63", "price": "3010000000", "monthlyRent": null, "pyong": 28, "floor": "10", "address": "서울 송파구 잠실동 101-1", "shortAddress": "서울시" } ] } }5. 임장 상세 조회
GET /api/mock/notes/detail응답 예시:
{ "isSuccess": true, "code": "COMMON200", "message": "성공입니다.", "result": { "isShared": true, "purposeType": "RESIDENTIAL_PURPOSE", "propertyType": "APARTMENT", "priceType": "SALE", "buildingName": "우성 아파트", "images": [ "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_1.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_2.jpeg", "https://juinjang-bucket.s3.ap-northeast-2.amazonaws.com/mock/mock-png_3.jpeg" ], "roadAddress": "서울 송파구 잠실동", "addressDetail": "101-1", "price": "3010000000", "monthlyRent": null, "updatedAt": "23.12.01", "floor": "10", "pyong": 28, "bcode": "1168010100", "sido": "서울특별시", "sigungu": "송파구", "bname1": "잠실동", "bname2": "" } } }6. 체크리스트 조회
GET /api/mock/notes/checklists응답 예시: