HomeAboutMeBlogGuest
© 2025 Sejin Cha. All rights reserved.
Built with Next.js, deployed on Vercel
🧚
[1기]최종 프로젝트 데브코스
/
🍒
[팀10] CherryBoys❤️
/Request/Response(1차 설계)/
스톤 [매칭]

스톤 [매칭]

  • 매칭 전체 리스트 조회
    • Request
      • { "index": 5 // 무한스크롤 }
    • Response
      • [ {매칭정보1}, {매칭정보2}, {매칭정보3} ]
  • 매칭 필터 리스트 조회
    • Request
      • { // 각 항목이 nullable인지? "sports": "FOOTBALL", "city": "서울시" "region": "금천구", "groundName": "유두 체육관", "date": "2021-12-02", "ageGroup" : "20s", "index": 5 // 무한스크롤 }
    • Response
      • [ {매칭정보1}, {매칭정보2}, {매칭정보3} ]
  • 매칭 상세 정보 조회 (matchId path variable)
    • Request
    • Response
      • { "matchId": 1, // 매치 id "registerTeamId": 2, // 등록팀 id "applyTeamId": null // 수락완료 신청팀 id(nullable). null일 시 매칭 전 "sports": "FOOTBALL", "cityId": 1, "regionId": 1, "groundId": 1, "date": "2021-12-02", "startTime": "14:00", "endTime": "17:00", "ageGroup" : "20s", "status": "경기전", "cost": 30000, "detail": "3:3 빠른 매칭 초보환영#l2", "isCancelled": false, "created_date": "2021-12-01", "modified_date": "2021-12-01", // 수락 전 매치 신청한 팀 목록? -> 매치 신청팀 리스트 조회 API 사용 // 참가 팀원은? 유저 매치 기록API // players: [userId, userId, userId] }
  • 매칭 신청자의 팀 & 팀원 리스트 조회 (팀+팀원 조회)(matchId path variable)
    • → path variable이 아니라 페이지 이동 시 request body로 넘겨줘야 하지 않을까요..?
    • Request
    • Response
      • { "waitingTeams" : [ {팀정보1, 팀원+용병}, {팀정보2, 팀원+용병} ] }
  • 매칭 신청 (matchId path variable)
    • Request
      • { "applyTeamId": 2, // 매칭 신청팀 id "players": [userId, userId, userId] // 신청 팀원 }
    • Response
  • 매칭 신청한 팀 리스트 조회 (matchId path variable)
    • Request
    • Response
      • { "waitingTeams": [waitingTeamsId, waitingTeamsId, waitingTeamsId] }
  • 매칭 수락 : 백엔드 고민 → watingId path variable
    • Request
    • Response
  • 수락되기전 매칭 취소 (waitingId path variable)
    • Request
    • Response
  • 매칭 삭제 (matchId path variable)
    • Request
    • Response
  • 매칭 등록
    • Request
      • { "registerTeamId": 1, "sports": "축구", "city": "1" "region": "1", "ground": "1", "date": "2021-12-02", "startTime": "14:00:01", "endTime": "17:00:01", "ageGroup" : "20대", "cost": 30000, "detail": "3:3 빠른무한 초보#l2", "players": [1, 2, 3] }
    • Response
  • 매칭 정보 수정(matchId path variable)
    • Request
      • { register_team_id: 123, // 수정불가 sports: "FOOTBALL", // 수정불가 "city": "서울시" "region": "금천구", "groundName": "유제두 체육관", "date": "2021-12-02", "startTime": "14:00", "endTime": "17:00", "ageGroup" : "20s", "cost": 30000, "detail": "3:3 빠른 매칭 초보환영", "players": [userId, userId, userId]// 참가 팀원 }
    • Response