# 3.สร้าง Web API ตัวแรกกัน

💬 หลังจากที่ติดตั้ง .NET Core SDK เรียบร้อยละคราวนี้เราจะมาลองสร้างเว็บโปรเจคที่เป็น Web API กันดูนะครับ

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

{% hint style="success" %}
สำหรับเพื่อนๆคนไหนที่ยังไม่ได้ลง Visual Studio Code รบกวนไปติดตั้งก่อนได้จากลิงค์ด้านล่างนี้ครับ\
[Visual Studio Code](https://code.visualstudio.com) หรือถ้าต้องการเล่นตัว [Visual Studio Community](https://visualstudio.microsoft.com/vs/community) ก็สามารถใช้ได้เลยเหมือนกันครับ
{% endhint %}

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

### 👨‍🚀 คำสั่งในการสร้างโปรเจค

```
dotnet new webapi -n ชื่อโปรเจคของเรา
```


---

# 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/create-your-web-api.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.
