AI · AIC-08

สร้าง REST API ด้วย Python FastAPI ครบวงจร

12 hours 2 days
Last updated

สร้าง REST API ด้วย Python FastAPI ครบวงจร is a 12-hour training course by IT Genius Institute. ในยุคที่แอปพลิเคชันและเว็บไซต์ต้องสื่อสารกับระบบหลังบ้านด้วย API เป็นหลัก การพัฒนา RESTful API จึงกลายเป็นทักษะสำคัญของนักพัฒนาซอฟต์แวร์ยุคใหม่…

Training schedule

No public rounds are open right now — register your interest and we will contact you when the next round opens, or request an in-house session for your team.

Corporate training quote

สร้าง REST API ด้วย Python FastAPI ครบวงจร ในยุคที่แอปพลิเคชันและเว็บไซต์ต้องสื่อสารกับระบบหลังบ้านด้วย API เป็นหลัก การพัฒนา RESTful API จึงกลายเป็นทักษะสำคัญของนักพัฒนาซอฟต์แวร์ยุคใหม่ หลักสูตรนี้ออกแบบมาเพื่อผู้ที่ต้องการเริ่มต้นสร้าง Backend ด้วย Python และ FastAPI ซึ่งเป็น Framework ที่มีความเร็วสูง ใช้งานง่าย และเป็นที่นิยมในระดับอุตสาหกรรม โดยเราจะพาคุณเรียนรู้เครื่องมือใหม่ล่าสุดอย่าง uv เพื่อการจัดการโปรเจกต์ที่ง่ายและเร็วกว่าเดิม

ผู้เรียนจะได้เรียนรู้ตั้งแต่พื้นฐานโครงสร้าง API, การออกแบบ Endpoint, การจัดการข้อมูลด้วย Database, การยืนยันตัวตนด้วย JWT, การอัปโหลดไฟล์ ไปจนถึงการทดสอบระบบ และการรันระบบผ่าน Docker ผู้เรียนจะได้ลงมือทำ Workshop ครบทุกขั้นตอน พร้อมสามารถนำไปต่อยอดพัฒนาโปรเจกต์จริงได้ทันที

Objectives

  • สร้าง REST API ด้วย Python FastAPI ได้
  • เข้าใจคอนเซปต์ของ Python FastAPI เบื้องต้น

Who this course is for

  • นักศึกษา / ผู้เริ่มต้นด้านโปรแกรมมิ่ง
  • Programmer สาย Frontend ที่อยากขยับมาทำ Backend
  • นักพัฒนาที่ต้องการเปลี่ยนสายมาเป็น Backend Developer
  • บุคคลทั่วไปที่ต้องการสร้างระบบ API เป็นของตนเอง

Prerequisites

  • เขียน Python ได้ระดับพื้นฐาน (ตัวแปร, ฟังก์ชัน, import library)
  • ใช้ Terminal / VS Code ได้
  • เข้าใจการใช้งาน Command Line เบื้องต้น
  • ไม่จำเป็นต้องเคยเขียน API มาก่อน
  • ไม่มีพื้นฐาน Web Development มาก่อนก็ได้

Curriculum

Section 1: พื้นฐาน REST API + FastAPI + CRUD เบื้องต้น

  • ความรู้พื้นฐานเกี่ยวกับ API และ HTTP Protocol
  • API คืออะไร ?
  • HTTP Protocol เบื้องต้น
  • RESTful API คืออะไร ?
  • GET, POST, PUT, DELETE Methods
  • Status Code
  • แนะนำ FastAPI และจุดเด่นของ Framework นี้
  • ติดตั้ง Python + uv
  • สร้าง Virtual Environment ด้วย uv
  • สร้าง FastAPI Project แรก
  • ทดลองสร้าง API Endpoint แรก /hello
  • Structure ของ FastAPI Project
  • การรับค่า Path, Query, Request Body
  • CRUD แบบไม่ใช้ Database (list, dict)
  • Workshop: สร้างระบบจัดการสินค้า (In-memory CRUD)

Section 2: Database + ORM + Migration + Pydantic

  • แนะนำ Database (PostgreSQL / MySQL)
  • การใช้ Docker Compose เฉพาะ Database
  • ติดตั้ง SQLAlchemy + Pydantic ด้วย uv
  • เชื่อมต่อ FastAPI กับ Database
  • สร้าง Model และ Table
  • CRUD with Database ด้วย ORM
  • การทำ Validation ด้วย Pydantic
  • การใช้งาน Alembic สำหรับ Migration
  • Workshop: ระบบจัดการผู้ใช้งาน (User CRUD + Database)

Section 3: Authentication + JWT + Upload + Testing + Docker

  • แนวคิด Authentication & Authorization
  • การสร้างระบบ Login ด้วย JWT
  • Password Hashing
  • Role & Permission เบื้องต้น
  • Upload File ด้วย FastAPI
  • การจัดการ Static File
  • การเขียน Unit Test สำหรับ FastAPI
  • การสร้าง Dockerfile สำหรับ FastAPI
  • การใช้ Docker Compose สำหรับ FastAPI + Database
  • Workshop: Login + CRUD + Upload + JWT
  • Deploy FastAPI App ขึ้น Cloud (Render)

Frequently asked questions

Who is สร้าง REST API ด้วย Python FastAPI ครบวงจร for, and what background is needed?

Built for นักศึกษา / ผู้เริ่มต้นด้านโปรแกรมมิ่ง · Programmer สาย Frontend ที่อยากขยับมาทำ Backend · นักพัฒนาที่ต้องการเปลี่ยนสายมาเป็น Backend Developer Background you should have: เขียน Python ได้ระดับพื้นฐาน (ตัวแปร, ฟังก์ชัน, import library) · ใช้ Terminal / VS Code ได้ Not sure the fit is right? Talk to our team on LINE @itgenius or call 02-570-8449.

How much does สร้าง REST API ด้วย Python FastAPI ครบวงจร cost and how long does it run?

THB 3,900 (currently THB 3,510 on promotion). The course runs 12 hours. The fee covers course materials, lunch and refreshments throughout. Pay by bank transfer to the company account, confirm it on our payment page, and we can issue the receipt or tax invoice in your company's name.

Do I get a certificate?

Yes. Everyone who completes the course receives a Certificate of Completion from IT Genius Institute. Each certificate carries its own number, and anyone holding that number can verify it online on our certificate page, so you can add it to your portfolio or pass it to HR as evidence of training.

Where does the training take place, and is there an online option?

You can attend onsite at IT Genius Institute or arrange to join online, and we also run it as a private in-house session for your team. Ask about dates and venues on LINE @itgenius or call 02-570-8449.

What if I fall behind or miss a session — can I retake it?

Yes. You may retake the same course free of charge in a later round, under the institute's conditions. Tell our team which course and round you attended, and we will check it and offer you the rounds that still have seats. Ask us on LINE @itgenius or call 02-570-8449.

How do I enrol, or request a quotation for my company?

Enrol online with the registration form on this page. You can register several attendees at once and enter your tax ID and billing address for the tax invoice. Or request a company quotation straight from the quote button. For anything else call 02-570-8449 or reach us on LINE @itgenius.

Instructors

Run this course for your whole team

We run this course in-house, tailored to your stack.

Corporate training quote