# プロジェクトの取得

`GET /api/project/{projectId}`

URL: https://repsona.com/ja/api/get-project-projectid

プロジェクトの基本情報・休日の設定・メンバーを返します。プロジェクトのメンバーだけが使えます。

## パラメーター

| name | in | type | required | description |
| --- | --- | --- | --- | --- |
| `projectId` | path | integer | 必須 | プロジェクトの ID です。 |

## リクエスト

```sh
curl -X GET "https://<space>.repsona.com/api/project/{projectId}" \
  -H "Authorization: Bearer $REPSONA_API_KEY"
```

## レスポンス

- 200: Project detail
- 401: Authentication is required
- 403: Not a project member
- 404: Project not found

## レスポンスの例

```json
{
  "id": 253,
  "name": "WEB",
  "fullName": "Website renewal",
  "purpose": "",
  "avatarUrl": "",
  "backgroundUrl": "",
  "productImageUrl": "",
  "isClosed": false,
  "isPublic": false,
  "free": true,
  "holidays": [],
  "regularHolidays": [
    0,
    6
  ],
  "members": [
    {
      "id": 987,
      "name": "sam.carter",
      "fullName": "Sam Carter",
      "avatarUrl": null,
      "color": null,
      "state": "active"
    },
    {
      "id": 988,
      "name": "reon.walls",
      "fullName": "Reon Walls",
      "avatarUrl": null,
      "color": null,
      "state": "active"
    }
  ],
  "hasTask": false
}
```
