# 8.มาจัดกลุ่ม API กัน (1/2)

💬 เวลาที่เราไปดู API ของบริษัทชั้นนำเขียนเราจะพบว่า **แค่อ่านชื่อ API เราแทบจะรู้เลยว่ามันใช้ทำงานอะไร** เพราะมันมีรูปแบบที่เป็นสากลในการเขียน API อยู่ครับ นั่นคือ**การจัดกลุ่มและการใช้ verb เข้ามาช่วย**นั่นเอง

{% embed url="<https://www.youtube.com/watch?v=Cxy599ZoSvk&list=PLUjAn8nwWniheN3OLy6i7xu1VYq4Tzj7p&index=8>" %}

## 🎯 สรุปสั้นๆ

### 👨‍🚀 การจัดกลุ่ม API

เราสามารถจัดกลุ่มของ API เพื่อใช้ในการแยกว่ามันคือเรื่องอะไรได้ เช่นเรื่องของสินค้าเราก็จะเขียนทุกอย่างที่เกี่ยวกับสินค้าอยู่ใน Product API ส่วนการสั่งซื้อสินค้าเราก็แยกมันออกไปอยู่ที่ ProductOrder API แทน


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://www.saladpuk.com/web/web-api-101/grouping-api-01.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
