File size: 1,962 Bytes
e476154
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# NerdOptimize Dataset API Documentation

Base URL: `http://localhost:3000/api`

## Endpoints

### `GET /case-studies` → List all case studies
- **Parameters**:
  - `industry`: Optional. Filter by industry (e.g., "Healthcare", "E-commerce").
- **Example**:
  ```bash 
  curl "http://localhost:3000/api/case-studies?industry=Healthcare" | jq .

### `GET /services` → List all services
- **Parameters**:
  - `category`: Optional. Filter by service category (e.g., "SEO", "CRO").
- **Example**:
  ```bash
  curl "http://localhost:3000/api/services?category=seo" | jq .

### `GET /frameworks` → List all frameworks
- **Example**:
  ```bash
  curl http://localhost:3000/api/frameworks | jq .


- `POST /services` → Create a new service
  - **Body** (JSON):
    ```json
    {
      "name": "New SEO Service",
      "summary": "A detailed description of the new SEO service.",
      "deliverables": ["Item 1", "Item 2"],
      "outcomes": ["Outcome 1", "Outcome 2"]
    }
    ```

### Error Responses:
- **400 Bad Request**: Invalid input data.
- **404 Not Found**: Resource not found.
- **500 Internal Server Error**: Server encountered an unexpected condition.

#### **ตัวอย่างการเพิ่มในส่วน API Documentation**
อธิบายรายละเอียดเพิ่มเติมเกี่ยวกับการกรองข้อมูล, การโพสต์ข้อมูล, และข้อผิดพลาดที่อาจเกิดขึ้น

---

**สรุป**: เพิ่มตัวอย่างการใช้ POST, การจัดการ Error, และการกรองข้อมูลผ่านพารามิเตอร์ต่าง ๆ

---

### ถ้าพร้อมแล้ว เราจะไปที่ **Case Studies (case_studies.json)**:contentReference[oaicite:1]{index=1}กันต่อเลยไหมครับ?