---
# System prepended metadata

title: 系列課程管理

---

# 系列課程管理

[[Schema] 系列課程（Course）](Untitled%205/Schema%20Course.csv)

Example:

```json=
    {
        "id": 1,
        "name": "樂活訓練系列",
        "duration": 300,
        "type": 1,
        "openCount": 0,
        "description": "衰弱症復能肌力訓練、衰弱症復能平衡主題訓練...",
        "updatedAt": 1578240000000,
        "courseUnits": [
            CourseUnit,
            CourseUnit,
            ...
        ]
    }
```

### (OK)[管理] 查看系列課程列表

Request:

    GET /course?$queryParams

[Query Params:](Untitled%205/Query%20Params.csv)

Response (成功):

```json=
    {
      "success": true,
      "total": "總數量 <number>",
      "data": [
        Course,
        Course,
        ...
      ]
    }
```

### (OK)查看系列課程

Request:

    GET /course/$id

Response (成功):

```json=
    {
      "success": true,
      "data": {
          Course
      } 
    }
```

### [管理] 新增系列課程

Request:

    POST /course

Payload:

```json=
    {
      Course
    }
```

Response (成功):

```json=
    {
      "success": true,
      "data": {
          Course
      }
    }
```

### (OK)[管理] 編輯系列課程

Request:

    PUT /course/$id

Payload:

```json=
    {
      Course
    }
```

Response (成功):

```json=
    {
      "success": true,
      "data": {
          Course
      }
    }
```

### (OK)[管理] 移除系列課程

Request:

    DEL /course/$id

Response (成功):

```json=
    {
      "success": true,
      "data": {}
    }
```