1
1
### 게스트 모집하기
2
- POST http://localhost:8080/gameEntities
2
+ POST http://localhost:8080/games
3
3
Content-Type: application/json
4
4
Authorization:
5
5
6
6
{
7
7
"content" : " 재밌는 농구 경기 해요~! 다 초보입니다" ,
8
- "playDate" : " 2023-02-01 " ,
9
- "playStartTime" : " 11 :30" ,
8
+ "playDate" : " 2024-03-20 " ,
9
+ "playStartTime" : " 12 :30" ,
10
10
"playTimeMinutes" : 90 ,
11
- "mainAddress" : " 서울 영등포구 도림동 254 " ,
12
- "detailAddress" : " 영등포 다목적 체육관 2층 201호 " ,
11
+ "mainAddress" : " 서울 구로구 새말로 19 " ,
12
+ "detailAddress" : " 구로역 옆 농구장 " ,
13
13
"cost" : 100 ,
14
14
"maxMemberCount" : " 5" ,
15
15
"positions" : [
@@ -19,15 +19,15 @@ Authorization:
19
19
}
20
20
21
21
### 게스트 모집 상세 조회
22
- GET http://localhost:8080/gameEntities/1
22
+ GET http://localhost:8080/games/3
23
23
24
24
### 게스트 모집 참여 신청
25
- POST http://localhost:8080/gameEntities/38 /members
25
+ POST http://localhost:8080/games/4 /members
26
26
Content-Type: application/json
27
27
Authorization:
28
28
29
29
### 게스트 모집 참여 신청 수락
30
- PATCH http://localhost:8080/gameEntities/2 /members/3
30
+ PATCH http://localhost:8080/games/3 /members/2
31
31
Content-Type: application/json
32
32
Authorization:
33
33
@@ -36,40 +36,36 @@ Authorization:
36
36
}
37
37
38
38
### 게스트 모집 참여 신청 거절/취소
39
- DELETE http://localhost:8080/gameEntities/2 /members/3
39
+ DELETE http://localhost:8080/games/4 /members/1
40
40
Authorization:
41
41
42
42
### 게스트 모집에 참여 신청된 사용자 정보 목록 조회
43
- GET http://localhost:8080/gameEntities/2 /members?status=대기
43
+ GET http://localhost:8080/games/3 /members?status=대기
44
44
Authorization:
45
45
46
46
### 게스트 모집에 확정된 사용자 정보 목록 조회
47
- GET http://localhost:8080/gameEntities /2/members?status=확정
47
+ GET http://localhost:8080/games /2/members?status=확정
48
48
Authorization:
49
49
50
50
### 다른 사용자(호스트, 게스트) 매너 스코어 리뷰
51
- PATCH http://localhost:8080/gameEntities/1 /members/manner-scores
51
+ PATCH http://localhost:8080/games/3 /members/manner-scores
52
52
Content-Type: application/json
53
53
Authorization:
54
54
55
55
{
56
56
"mannerScoreReviews" : [
57
- {
58
- "memberId" : 1 ,
59
- "mannerScore" : 1
60
- },
61
57
{
62
58
"memberId" : 2 ,
63
- "mannerScore" : - 1
59
+ "mannerScore" : 1
64
60
}
65
61
]
66
62
}
67
63
68
64
### 조건별 게스트 모집글 조회(장소)
69
- GET http://localhost:8080/gameEntities ?category=location&value=서울시+영등포구 &page=0&size=3
65
+ GET http://localhost:8080/games ?category=location&value=서울시+구로구 &page=0&size=3
70
66
71
67
### 위도, 경도, 거리를 통해 해당하는 게스트 모집글 조회
72
- GET http://localhost:8080/gameEntities /by-location?latitude=37.5066680941127&longitude=126.897412723839&distance=1000
68
+ GET http://localhost:8080/games /by-location?latitude=37.5066680941127&longitude=126.897412723839&distance=1500
73
69
74
70
### 사용자의 주 활동지역에 해당하는 게스트 모집글 조회
75
- GET http://localhost:8080/gameEntities /by-address?addressDepth1=서울시&addressDepth2=영등포구
71
+ GET http://localhost:8080/games /by-address?addressDepth1=서울시&addressDepth2=구로구
0 commit comments