Skip to content

Commit

Permalink
feat(apitest.jsx): add team related endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
junglesub committed Jul 29, 2024
1 parent 3c549a6 commit e5c5129
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion src/pages/ApiTest.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,28 @@ const presets = [
description: "전체 유저 정보 확인",
body: {},
},
{
method: "POST",
endpoint: "/team/create",
description: "그룹 만들기",
body: {
name: "꿀꺽꿀꺽그룹",
},
},
{
method: "POST",
endpoint: "/team/join",
description: "그룹에 가입",
body: {
teamCode: "JPHL",
},
},
{
method: "GET",
endpoint: "/team/{groupId}",
description: "그룹정보 불러오기",
body: {},
},
];

const requestColor = {
Expand Down Expand Up @@ -160,7 +182,8 @@ function ApiTest() {
))}
</div>
<textarea
value={requestData}
value={requestType === "GET" ? "" : requestData}
disabled={requestType === "GET"}
onChange={(e) => setRequestData(e.target.value)}
/>
<h3>Preset</h3>
Expand Down

0 comments on commit e5c5129

Please sign in to comment.