---
# System prepended metadata

title: api
tags: [project base]

---

# api

## 사용자 관련

### 회원가입
- `POST /api/user`

| request | response |
| -------- | -------- |
| id, email, password | statuscode |


### 로그인
- `POST /api/user/signIn`

| request | response |
| -------- | -------- |
| email, password | statuscode |

---

## 게임선택 관련?

### 게임 타입 가져오기
- `GET /api/gameType`

| request | response |
| -------- | -------- |
| | [{name, image, rule}, ...] |

---

## 게임방 관련

### 게임방 리스트 가져오기
- `GET /api/gameRoomList`

| request | response |
| -------- | -------- |
| gameTypeNumber | [{roomNumber, title, gameTypeImage, [player{name, level}]}, ...] |

### 게임방 만들기
- `POST /api/gameRoom`

| request | response |
| -------- | -------- |
| title, isPublic, timeLimit, gameTypeNumber | statuscode |

### 게임방 삭제
- `DELETE /api/gameRoom/:id`

| request | response |
| -------- | -------- |
|  | statuscode |

### 플레이어 입장
- `POST /api/gameRoom/:roomNumber/player/:playerId`

| request | response |
| -------- | -------- |
| isMatser, playerNumber, id | statuscode |

### 플레이어 팀 변경
- `PATCH /api/gameRoom/:roomNumber/player/:playerId/team/:team`

| request | response |
| -------- | -------- |
|  | statuscode |

### 플레이어 퇴장
- `DELETE /api/gameRoom/:roomNumber/player/:playerId`

| request | response |
| -------- | -------- |
|  | statuscode |

### 착수(소켓?)
- `POST /api/gameRoom/:roomNumber/record`

| request | response |
| -------- | -------- |
|  | statuscode |

###### tags: `project base`