|
| 1 | +### 0. 회원가입 (HOST2) |
| 2 | +POST http://localhost:8080/api/v1/auth/signup |
| 3 | +Content-Type: application/json |
| 4 | + |
| 5 | +{ |
| 6 | + |
| 7 | + "password": "Test1234!@#", |
| 8 | + "nickName": "HostTwo", |
| 9 | + "phoneNumber": "010-0000-0001" |
| 10 | +} |
| 11 | + |
| 12 | +> {% |
| 13 | + client.global.set("host2UserId", response.body.data.userId); |
| 14 | +%} |
| 15 | + |
| 16 | +### 1. 로그인 (HOST2) |
| 17 | +POST http://localhost:8080/api/v1/auth/login |
| 18 | +Content-Type: application/json |
| 19 | + |
| 20 | +{ |
| 21 | + |
| 22 | + "password": "Test1234!@#" |
| 23 | +} |
| 24 | + |
| 25 | +> {% |
| 26 | + client.global.set("host2AccessToken", response.body.data.accessToken); |
| 27 | +%} |
| 28 | + |
| 29 | +### 2. 모임 V2 이미지 선 업로드 (HOST2) |
| 30 | +POST http://localhost:8080/api/v2/groups/images/upload |
| 31 | +Content-Type: multipart/form-data; boundary=boundary |
| 32 | +Authorization: Bearer {{host2AccessToken}} |
| 33 | + |
| 34 | +--boundary |
| 35 | +Content-Disposition: form-data; name="images"; filename="img1.png" |
| 36 | +Content-Type: image/png |
| 37 | + |
| 38 | +< ../../image/resources/img1.png |
| 39 | +--boundary |
| 40 | +Content-Disposition: form-data; name="images"; filename="img2.jpg" |
| 41 | +Content-Type: image/jpeg |
| 42 | + |
| 43 | +< ../../image/resources/img2.jpg |
| 44 | +--boundary-- |
| 45 | + |
| 46 | +> {% |
| 47 | + const images = response.body.data.images; |
| 48 | + client.global.set("h2_img0_key", images[0].imageKey); |
| 49 | + client.global.set("h2_img1_key", images[1].imageKey); |
| 50 | +%} |
| 51 | + |
| 52 | +### 3. V2 모임 생성 (ACTIVE 테스트용) |
| 53 | +POST http://localhost:8080/api/v2/groups/create |
| 54 | +Content-Type: application/json |
| 55 | +Authorization: Bearer {{host2AccessToken}} |
| 56 | + |
| 57 | +{ |
| 58 | + "title": "내 모임(current) 테스트용 - ACTIVE", |
| 59 | + "location": "서울 서초구", |
| 60 | + "locationDetail": "교대역 1번 출구 근처 카페", |
| 61 | + "startTime": "2026-12-20T19:00:00", |
| 62 | + "endTime": "2026-12-20T21:00:00", |
| 63 | + "tags": ["ME_HTTP", "ACTIVE"], |
| 64 | + "description": "me.http current/active 테스트용 모임입니다.", |
| 65 | + "maxParticipants": 5, |
| 66 | + "images": [ |
| 67 | + { |
| 68 | + "sortOrder": 0, |
| 69 | + "imageKey": "{{h2_img0_key}}" |
| 70 | + }, |
| 71 | + { |
| 72 | + "sortOrder": 1, |
| 73 | + "imageKey": "{{h2_img1_key}}" |
| 74 | + } |
| 75 | + ] |
| 76 | +} |
| 77 | + |
| 78 | +> {% |
| 79 | + client.global.set("groupId_active", response.body.data.id); |
| 80 | +%} |
| 81 | + |
| 82 | +### 4. 회원가입 (MEMBER2) |
| 83 | +POST http://localhost:8080/api/v1/auth/signup |
| 84 | +Content-Type: application/json |
| 85 | + |
| 86 | +{ |
| 87 | + |
| 88 | + "password": "Test1234!@#", |
| 89 | + "nickName": "CancelMember2", |
| 90 | + "phoneNumber": "010-2222-3333" |
| 91 | +} |
| 92 | + |
| 93 | +> {% |
| 94 | + client.global.set("c_memberId2", response.body.data.userId); |
| 95 | +%} |
| 96 | + |
| 97 | +### 5. 로그인 (MEMBER2) |
| 98 | +POST http://localhost:8080/api/v1/auth/login |
| 99 | +Content-Type: application/json |
| 100 | + |
| 101 | +{ |
| 102 | + |
| 103 | + "password": "Test1234!@#" |
| 104 | +} |
| 105 | + |
| 106 | +> {% |
| 107 | + client.global.set("c_member2AccessToken", response.body.data.accessToken); |
| 108 | +%} |
| 109 | + |
| 110 | +### 6. MEMBER2 -> ACTIVE 모임 참여 |
| 111 | +POST http://localhost:8080/api/v2/groups/{{groupId_active}}/attend |
| 112 | +Content-Type: application/json |
| 113 | +Authorization: Bearer {{c_member2AccessToken}} |
| 114 | + |
| 115 | +{} |
| 116 | + |
| 117 | +### 7. 내 모임 조회 (MEMBER2) - current (기본) |
| 118 | +GET http://localhost:8080/api/v2/groups/me?size=5 |
| 119 | +Authorization: Bearer {{c_member2AccessToken}} |
| 120 | + |
| 121 | +> {% |
| 122 | + const nextCursor = response.body.data.nextCursor; |
| 123 | + if (nextCursor !== null && nextCursor !== undefined) { |
| 124 | + client.global.set("my_cursor_current_page1", nextCursor); |
| 125 | + } |
| 126 | +%} |
| 127 | + |
| 128 | +### 8. 내 모임 조회 (MEMBER2) - current (명시) |
| 129 | +GET http://localhost:8080/api/v2/groups/me?type=current&size=5 |
| 130 | +Authorization: Bearer {{c_member2AccessToken}} |
| 131 | + |
| 132 | +### 9. 내 모임 조회 (MEMBER2) - past |
| 133 | +GET http://localhost:8080/api/v2/groups/me?type=past&size=5 |
| 134 | +Authorization: Bearer {{c_member2AccessToken}} |
| 135 | + |
| 136 | +### 10. 내 모임 조회 (MEMBER2) - current 다음 페이지 |
| 137 | +GET http://localhost:8080/api/v2/groups/me?type=current&size=5&cursor={{my_cursor_current_page1}} |
| 138 | +Authorization: Bearer {{c_member2AccessToken}} |
| 139 | + |
| 140 | +### 11. 내 모임 조회 (HOST2) - myPost |
| 141 | +GET http://localhost:8080/api/v2/groups/me?type=myPost&size=10 |
| 142 | +Authorization: Bearer {{host2AccessToken}} |
| 143 | + |
| 144 | +> {% |
| 145 | + const items = response.body.data.items || []; |
| 146 | + if (items.length > 0) { |
| 147 | + client.global.set("my_post_groupId_0", items[0].id); |
| 148 | + } |
| 149 | +%} |
| 150 | + |
| 151 | +### 12. (선택) myPost 첫 번째 모임 상세 확인 (HOST2) |
| 152 | +GET http://localhost:8080/api/v2/groups/{{my_post_groupId_0}} |
| 153 | +Authorization: Bearer {{host2AccessToken}} |
0 commit comments