Skip to content

Commit 59f8a9a

Browse files
Hchanghyeonkylekim2123
authored andcommitted
refactor: http 파일 내용 수정 및 추가
1 parent 79cc785 commit 59f8a9a

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

src/main/http/game/game.http

+16-20
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
### 게스트 모집하기
2-
POST http://localhost:8080/gameEntities
2+
POST http://localhost:8080/games
33
Content-Type: application/json
44
Authorization:
55

66
{
77
"content": "재밌는 농구 경기 해요~! 다 초보입니다",
8-
"playDate": "2023-02-01",
9-
"playStartTime": "11:30",
8+
"playDate": "2024-03-20",
9+
"playStartTime": "12:30",
1010
"playTimeMinutes": 90,
11-
"mainAddress": "서울 영등포구 도림동 254",
12-
"detailAddress": "영등포 다목적 체육관 2층 201호",
11+
"mainAddress": "서울 구로구 새말로 19",
12+
"detailAddress": "구로역 옆 농구장",
1313
"cost": 100,
1414
"maxMemberCount": "5",
1515
"positions": [
@@ -19,15 +19,15 @@ Authorization:
1919
}
2020

2121
### 게스트 모집 상세 조회
22-
GET http://localhost:8080/gameEntities/1
22+
GET http://localhost:8080/games/3
2323

2424
### 게스트 모집 참여 신청
25-
POST http://localhost:8080/gameEntities/38/members
25+
POST http://localhost:8080/games/4/members
2626
Content-Type: application/json
2727
Authorization:
2828

2929
### 게스트 모집 참여 신청 수락
30-
PATCH http://localhost:8080/gameEntities/2/members/3
30+
PATCH http://localhost:8080/games/3/members/2
3131
Content-Type: application/json
3232
Authorization:
3333

@@ -36,40 +36,36 @@ Authorization:
3636
}
3737

3838
### 게스트 모집 참여 신청 거절/취소
39-
DELETE http://localhost:8080/gameEntities/2/members/3
39+
DELETE http://localhost:8080/games/4/members/1
4040
Authorization:
4141

4242
### 게스트 모집에 참여 신청된 사용자 정보 목록 조회
43-
GET http://localhost:8080/gameEntities/2/members?status=대기
43+
GET http://localhost:8080/games/3/members?status=대기
4444
Authorization:
4545

4646
### 게스트 모집에 확정된 사용자 정보 목록 조회
47-
GET http://localhost:8080/gameEntities/2/members?status=확정
47+
GET http://localhost:8080/games/2/members?status=확정
4848
Authorization:
4949

5050
### 다른 사용자(호스트, 게스트) 매너 스코어 리뷰
51-
PATCH http://localhost:8080/gameEntities/1/members/manner-scores
51+
PATCH http://localhost:8080/games/3/members/manner-scores
5252
Content-Type: application/json
5353
Authorization:
5454

5555
{
5656
"mannerScoreReviews": [
57-
{
58-
"memberId": 1,
59-
"mannerScore": 1
60-
},
6157
{
6258
"memberId": 2,
63-
"mannerScore": -1
59+
"mannerScore": 1
6460
}
6561
]
6662
}
6763

6864
### 조건별 게스트 모집글 조회(장소)
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
7066

7167
### 위도, 경도, 거리를 통해 해당하는 게스트 모집글 조회
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
7369

7470
### 사용자의 주 활동지역에 해당하는 게스트 모집글 조회
75-
GET http://localhost:8080/gameEntities/by-address?addressDepth1=서울시&addressDepth2=영등포구
71+
GET http://localhost:8080/games/by-address?addressDepth1=서울시&addressDepth2=구로구

src/main/http/member/member.http

+18-10
Original file line numberDiff line numberDiff line change
@@ -4,42 +4,50 @@ Content-Type: application/json
44
Authorization:
55

66
{
7-
"email": "changhyeon.h@kakao.com",
8-
"nickname": "창현",
7+
"email": "test2@test.com",
8+
"nickname": "테스트2",
99
"profileImageUrl": "http://k.kakaocdn.net/dn/dpk9l1/btqmGhA2lKL/Oz0wDuJn1YV2DIn92f6DVK/img_640x640.jpg",
1010
"positions": [
11-
"SG"
11+
"C","PG"
1212
],
1313
"addressDepth1": "서울시",
14-
"addressDepth2": "영등포구",
15-
"oauthId": 32014123,
14+
"addressDepth2": "구로구",
15+
"oauthId": 32014120,
1616
"oauthProvider": "KAKAO"
1717
}
1818

1919
### 사용자 프로필 조회
2020
GET http://localhost:8080/members/1
2121

2222
### 사용자가 가입한 크루 목록
23-
GET http://localhost:8080/members/1/crews?status=확정
23+
GET http://localhost:8080/members/3/crews?status=확정
2424
Authorization:
2525

2626
### 사용자가 만든 크루 목록 조회
2727
GET http://localhost:8080/members/1/created-crews
2828
Authorization:
2929

3030
### 사용자의 참여 확정 게스트 모집글 목록 조회
31-
GET http://localhost:8080/members/1/gameEntities?status=확정
31+
GET http://localhost:8080/members/2/games?status=대기
3232
Authorization:
3333

3434
### 사용자가 만든 게스트 모집글 목록 조회
35-
GET http://localhost:8080/members/1/created-gameEntities
35+
GET http://localhost:8080/members/2/created-games
3636
Authorization:
3737

3838

3939
### 사용자의 게스트 모집 참여 여부 조회
40-
GET http://localhost:8080/members/5/gameEntities/1/registration-status
40+
GET http://localhost:8080/members/2/games/4/registration-status
4141
Authorization:
4242

4343
### 사용자의 크루 가입 여부 조회
4444
GET http://localhost:8080/members/1/crews/2/registration-status
45-
Authorization
45+
Authorization:
46+
47+
### AccessToken 재발급
48+
POST http://localhost:8080/auth/refresh
49+
Authorization:
50+
51+
### AccessToken 재발급
52+
DELETE http://localhost:8080/auth/logout
53+
Authorization:

0 commit comments

Comments
 (0)