惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
T
The Exploit Database - CXSecurity.com
V
Vulnerabilities – Threatpost
Know Your Adversary
Know Your Adversary
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
N
News and Events Feed by Topic
Spread Privacy
Spread Privacy
Application and Cybersecurity Blog
Application and Cybersecurity Blog
S
Secure Thoughts
G
GRAHAM CLULEY
Google Online Security Blog
Google Online Security Blog
Help Net Security
Help Net Security
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
O
OpenAI News
Google DeepMind News
Google DeepMind News
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Security Archives - TechRepublic
Security Archives - TechRepublic
L
LINUX DO - 最新话题
Microsoft Azure Blog
Microsoft Azure Blog
C
Cybersecurity and Infrastructure Security Agency CISA
Stack Overflow Blog
Stack Overflow Blog
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
L
Lohrmann on Cybersecurity
H
Hacker News: Front Page
W
WeLiveSecurity
P
Privacy International News Feed
Forbes - Security
Forbes - Security
月光博客
月光博客
PCI Perspectives
PCI Perspectives
T
Tailwind CSS Blog
N
News and Events Feed by Topic
T
Threat Research - Cisco Blogs
Engineering at Meta
Engineering at Meta
F
Full Disclosure
AI
AI
Hacker News - Newest:
Hacker News - Newest: "LLM"
Schneier on Security
Schneier on Security
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
D
Darknet – Hacking Tools, Hacker News & Cyber Security
V
Visual Studio Blog
The Hacker News
The Hacker News
博客园 - 叶小钗
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
博客园 - 司徒正美
T
The Blog of Author Tim Ferriss

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant Common SOC 2 Failures (Real World) Stop Vibe-Checking Your AI App: A Practical Guide to Evals How to Use SonarQube and SonarScanner Locally to Level Up Your Code Quality Your Next To-Do App Is Dead — I Replaced Mine with an OpenClaw AI Sign a Nostr event in 60 lines of Python using coincurve — no nostr-sdk, no nbxplorer, no rust toolchain ITGC Audit Explained Like You’re in Big 4 Patch Tuesday abril 2026: Microsoft parcha 163 vulnerabilidades y un zero-day en SharePoint Stop scraping everything: a better way to track competitor price changes Listing on MCPize + the Official MCP Registry while routing payments OUTSIDE the marketplace — how I kept 100% of my x402 revenue Building an AI-Powered Risk Intelligence System Using Serverless Architecture Why We Ripped Function Overloading Out of Our AI Toolchain Testing AI-Generated Code: How to Actually Know If It Works SaaS Churn Is Killing Your Business. Here Is What to Do About It (Without a Support Team) The Speed of AI Is No Longer Linear - And Self-Improving Models Are Why How to Implement RBAC for MCP Tools: A Practical Guide for Engineering Teams From Standard Quote to Persuasive Proposal: AI Automation for Arborists I built a CLI that scaffolds complete multi-tenant SaaS apps Axios CVE-2025–62718: The Silent SSRF Bug That Could Be Hiding in Your Node.js App Right Now The dashboard that ended our friendship Data Pipelines Explained Simply (and How to Build Them with Python) The Hidden Cost of AI Systems Nobody Talks About. undefined vs undeclared, and how typeof behaves Switching from file-based jobs to NATS/Kafka in Rust without changing code io_uring Adventures: Rust Servers That Love Syscalls Why Agentic AI is Killing the Traditional Database The POUR principles of web accessibility for developers and designers Quantum Neural Network 3D — A Deep Dive into Interactive WebGL Visualization How To Install Caveman In Codex On macOS And Windows Automation Pipeline Reliability: Why Your Workflow Breaks When Nobody Is Watching I Built an 'Open World' AI Coding Agent — It Works From ANY Folder From Freelancing to Product: A Tech Service Company's SaaS Transformation China's AI Giants: Adding Tencent Hunyuan & ByteDance Doubao to AI University (74 Providers) On the Vibe Coders and Their Lies clerk: Auto-Summarize Your Claude Code Sessions AI Weekly — 2026/04/10–04/17 | The Model Lockdown Is Here, but the Toolchain Is the Real Battleground AI 週報 — 2026/04/10–2026/04/17 模型封鎖潮來了,但工具鏈才是真戰場 Maybe this is how Open-Source apps are born... 🚀 Fine-Tune LLMs with LoRA and QLoRA: 2026 Guide tRPC v11 + Next.js App Router: End-to-End Type Safety Without the Boilerplate ShadCN UI in 2026: Why I Stopped Installing Component Libraries and Started Owning My Components SaaS Billing in React Server Components: Stripe + Supabase Without a Single `useEffect` Join our DEV Weekend Challenge — $1,000 in Prizes Across TEN winners! Submissions Due April 20 at 6:59 AM UTC. Implementing FSRS Spaced Repetition in Flutter + Supabase — Adding Memory Science to an AI Learning App "I Texted My Localhost From the Train — Claude Code Fixed the Bug Before I Got Home" I Built a Sales Prep AI and It Went Deeper Than Expected Design to Code #2: One JSON, Eleven Outputs Solving the 100M-Row Problem: A Summary Table Pattern for High-Volume Push Notification Logs Flutter Web With Wasm: What Actually Changes For Developers I Built 50 Royalty-Free Soundtracks for My Side Project in a Weekend Using AI Music Generation The Vibe Coding Security Checklist: 7 Things to Check Before You Ship Stop Letting Googlebot Guess Fix Your React App's SEO Right Desconstruindo o Streaming do LinkedIn: Como Criar um Engine de Extração de Vídeo de Alta Performance com HLS e FFmpeg (EDA Part-1) EDA (Exploratory Data Analysis) Explained With Real Life — Why Looking at Your Data Is the Most Important Step in Machine Learning Brand Relationship Management at Scale: Our 4-Touch Outreach System for 200+ Brands Why String.fromEnvironment() Might Return an Empty String in Dart JGuardrails 1.0.0 — Hardening Java LLM Apps Against Jailbreaks, Toxicity, and Prompt Injection Plan and Schedule a Full Week of Threads Content From One Claude Conversation Coding Cat Oran Ep3, Five Tables Changed Everything Updated: BFF Pattern I'm done watching freelancers get buried by 200 proposals. So I'm building the alternative. This is my first post BFS Algorithm in Java Step by Step Tutorial with Examples Tracking LLM Pricing Monthly: An Open Dataset for 22 AI Models How We Measure Content ROI on a Comparison Site: Revenue Attribution Without Perfect Data Introducing Nova AI Ops: The AI-Native Operating System for SRE Teams I built a free desktop video downloader for Windows — Grabbit How Talkie OCR Helps Vision-Impaired & Dyslexic Users Read the World Around Them VRCFaceTracking安装和iPhone面捕配置教程,有bug Even CrowdStrike Can't See Your Agents The Automation Gold Rush: What n8n Workflows and Claude Are Opening Up for Developers Right Now
ใช้ Apidog สร้าง API ก่อนเขียนโค้ด: Visual Designer ไม่ใช่คนสำคัญคนเดียวอีกต่อไป
Thanawat Won · 2026-05-14 · via DEV Community

ในทุกทีม API ที่ผมเคยทำงานด้วย มักมีสองแนวทาง: ทีมหนึ่งเขียน OpenAPI spec ด้วยมือแล้วเก็บไว้ใน specs/ โดยให้ Git เป็นแหล่งความจริง อีกทีมใช้เครื่องมือออกแบบแบบภาพ สร้าง endpoint ผ่าน UI แล้ว export spec เมื่อ CI แจ้งเตือนว่ามีอะไรไม่ตรงกัน

ลองใช้ Apidog วันนี้

ผมเคยอยู่ทั้งสองแบบ แนวทางแรกช้ากว่าในวันแรก แต่เร็วกว่าในวันที่เก้าสิบ แนวทางที่สองตรงกันข้าม และจนถึงประมาณหนึ่งเดือนก่อน เครื่องมือออกแบบ API ที่ผมใช้บ่อยที่สุดอย่าง Apidog รองรับแนวทางที่สองเป็นหลัก: UI ดีมาก แต่การส่ง YAML ไปกลับระหว่างเครื่องมือกับ Git ยังเป็นสิ่งที่ต้องคอยป้องกันในการ review code

ช่วงกลางเดือนเมษายน Spec-First Mode (Beta) ปรากฏในกล่อง New Project ผมไม่ได้เขียนถึงทันที เพราะอยากลองกับโปรเจกต์จริงก่อน และรอให้ปัญหาช่วงแรกมีโอกาสโผล่ขึ้นมา หลังจากลองกับ OpenAPI spec ของโปรเจกต์ส่วนตัว นี่คือสิ่งที่ผมจะบอกทีมก่อนให้ลองใช้

Spec-First Mode เปลี่ยนอะไร

สั้น ๆ: Apidog ตอนนี้มีสองโหมดโปรเจกต์ที่ทำงานต่างกันจริง

General Mode คือโหมดเดิมที่หลายคนคุ้นเคย:

  1. คลิก + New Project
  2. สร้าง endpoint ผ่านฟอร์มและโครงสร้างโฟลเดอร์
  3. Apidog สร้าง OpenAPI spec ให้เบื้องหลัง

โหมดนี้เหมาะกับทีมที่ยังไม่อยากแตะ YAML โดยตรง

Spec-First Mode เปลี่ยนจุดศูนย์กลางจาก UI เป็นไฟล์ spec:

  • แก้ไขไฟล์ .yaml และ .json โดยตรง
  • ซิงค์สองทางกับ Git repository
  • มี syntax highlighting
  • มี autocomplete ตาม OpenAPI schema
  • มี Real-time Directory Parsing เพื่อสร้าง outline ของ endpoint ใน sidebar ระหว่างที่พิมพ์

ตัวอย่าง spec ที่คุณแก้ในโหมดนี้คือไฟล์จริงใน repo ไม่ใช่ข้อมูลที่ถูก export จากการคลิกใน UI:

openapi: 3.0.3
info:
  title: Store API
  version: 1.0.0

paths:
  /store/token:
    post:
      summary: Create store token
      responses:
        "200":
          description: Token created

Enter fullscreen mode Exit fullscreen mode

จุดสำคัญคือคุณยังได้ navigation แบบเครื่องมือภาพ แต่ไม่ต้องละทิ้ง Git workflow เดิม คุณเขียน spec เป็นไฟล์ และ Apidog แสดง outline ให้ใช้นำทางทันที

พื้นที่ทำงาน Spec-First Mode ระหว่างการแก้ไขโปรเจกต์ pet-store แถบด้านซ้ายคือโครงร่างพาธที่สร้างขึ้นอัตโนมัติ — สังเกต Paths (224) ที่ด้านบน ตามด้วยเส้นทางแต่ละเส้นทาง เช่น /store/auth/{email}, /admin/auth, /store/token ที่ปรากฏขึ้นโดยตรงจากไฟล์ ด้านบนขวา: ตัวบ่งชี้ Changes (1) และปุ่ม Commit & Push สีเขียว ด้านล่างซ้าย: Synced just now — ตัวบ่งชี้สถานะการซิงค์ที่กล่าวถึงในภายหลัง

ข้อสรุปของผม: spec-first ไม่ได้แปลว่า “ต้องใช้ text editor เท่านั้น” แต่แปลว่า artifact หลักต้องเป็นไฟล์ใน repository ส่วน UI เป็นมุมมองและเครื่องมือช่วยแก้ไข ไม่ใช่แหล่งความจริงอีกชุดหนึ่ง

ตั้งค่า Spec-First Mode ตั้งแต่ต้นจนจบ

ขั้นตอนที่ผมใช้จริงมี 6 ขั้นตอน ใช้เวลาน้อยกว่าสิบนาที โดยเวลาส่วนใหญ่หมดไปกับการอนุญาต Git

1. สร้างโปรเจกต์ในโหมดที่ถูกต้อง

ไปที่หน้าจอโปรเจกต์ แล้วเลือก:

+ New Project → General → Spec-first Mode

Enter fullscreen mode Exit fullscreen mode

จุดที่ควรระวังคือ General Mode มีป้าย “Recommended” ทำให้หลายคนอาจคลิกผ่านโดยไม่เห็นตัวเลือก Spec-first Mode ด้านข้าง ถ้าต้องการให้ Git เป็นแหล่งความจริง ต้องเลือกโหมดนี้ตั้งแต่ตอนสร้างโปรเจกต์

2. เชื่อมต่อ Git repository

ในส่วน Connect with Git Repository ให้เชื่อมต่อ provider ที่ใช้ เช่น GitHub จากนั้นเลือก:

  • Organization
  • Repository
  • Main branch

Apidog จะใช้ไฟล์ spec ใน branch นั้นเป็น working copy

3. กำหนดค่าโปรเจกต์

ตั้งค่า:

  • Project Name
  • สิทธิ์ของทีม
  • กด Create

การ sync ครั้งแรกจะดึงไฟล์ .yaml และ .json จาก repository เข้ามาใน workspace ของ Apidog

ขั้นตอนที่ 1–3 อยู่ในกล่องโต้ตอบเดียวกัน ด้านบน: กระเบื้องโหมดทั้งสอง General Mode ถูกตั้งค่าเป็น Recommended ซึ่งทำให้กระเบื้อง Spec-first Mode (ขวา, มีตรา Beta, ไฮไลท์สีม่วง) เป็นสิ่งที่พลาดง่าย กระเบื้อง Spec-first ระบุสิ่งที่เปลี่ยนแปลงภายใต้: OpenAPI Spec Editor (รองรับการแสดงภาพ) และการซิงค์สองทางกับที่เก็บ Git ด้านล่าง: แผง Connect with Git Repository พร้อมกับดรอปดาวน์ Organization, Repository (pet-store) และ Main branch (main) พร้อมช่อง Project Name หนึ่งหน้าจอ สามการตัดสินใจ

4. แก้ไข spec เหมือนไฟล์ ไม่ใช่แบบฟอร์ม

เปิดไฟล์ YAML หรือ JSON แล้วแก้ไขโดยตรงใน editor

สิ่งที่ควรลองทันที:

  1. เพิ่ม path ใหม่
  2. ดู sidebar ว่า outline อัปเดตหรือไม่
  3. คลิก endpoint ใน sidebar เพื่อกระโดดไปยังบรรทัดที่เกี่ยวข้อง

ตัวอย่างการเพิ่ม endpoint:

paths:
  /admin/auth:
    post:
      summary: Authenticate admin user
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - email
                - password
              properties:
                email:
                  type: string
                  format: email
                password:
                  type: string
      responses:
        "200":
          description: Authenticated
        "401":
          description: Unauthorized

Enter fullscreen mode Exit fullscreen mode

ถ้าคุณคุ้นกับ VS Code + OpenAPI extension อยู่แล้ว ประสบการณ์จะคล้ายกัน แต่ใน Apidog outline จะผูกกับ navigation ของ workspace โดยตรง

5. Commit และ push

มุมขวาบนให้กด Commit & Push

กล่อง dialog จะมี:

  • รายการไฟล์ใน Changes
  • ช่อง Commit Message
  • ปุ่ม Push
  • ปุ่ม Discard all changes

ไม่มี staging area แยกแบบ Git CLI สิ่งที่อยู่ใน Changes จะถูก commit พร้อมกัน เหมาะกับงานแก้ spec ที่มักเป็นชุดการเปลี่ยนแปลงขนาดเล็กและชัดเจน

ตัวอย่าง commit message ที่ใช้ได้จริง:

Add admin authentication endpoint

Enter fullscreen mode Exit fullscreen mode

หรือถ้าใช้ conventional commits:

feat(api): add admin authentication endpoint

Enter fullscreen mode Exit fullscreen mode

กล่องโต้ตอบ Push to Git repo สังเกตโครงสร้าง: ช่อง Commit Message หนึ่งช่อง, รายการ Changes (1 ไฟล์) พร้อมช่องทำเครื่องหมายต่อไฟล์, และสามปุ่มที่ด้านล่าง — Discard all changes (ซ้าย, ทำลายข้อมูล), Cancel (กลาง), และ Push (การกระทำหลัก, สีม่วง) ในพื้นหลัง คุณสามารถเห็นปุ่ม Commit & Push ที่มุมบนขวาของพื้นที่ทำงานที่เปิดกล่องโต้ตอบนี้

6. ตรวจสถานะ sync

ดูมุมล่างซ้ายของ workspace สถานะเช่น Synced just now บอกว่าการเปลี่ยนแปลงใน Apidog และ repository ตรงกันหรือไม่

สิ่งที่ควรใช้เป็นกฎง่าย ๆ:

  • ถ้าเป็นสถานะ synced: ไฟล์ใน Apidog และ Git ตรงกัน
  • ถ้า local มี change: commit/push ก่อนให้คนอื่นใช้ต่อ
  • ถ้า remote มี change: pull เข้ามาก่อนแก้ต่อ

สำหรับทีมที่มีหลายคนแก้ spec พร้อมกัน ตัวบ่งชี้นี้สำคัญกว่าที่คิด เพราะช่วยลดปัญหา “ใครแก้ spec ชุดล่าสุดอยู่ที่ไหน”

สิ่งที่ผมสังเกตหลังลองใช้จริง

มีสามประเด็นที่ควรรู้ก่อนใช้กับทีม

1. Outline อัปเดตเร็วพอที่จะใช้เป็น navigation จริง

ผมเคยใช้ live OpenAPI editor หลายตัวที่ re-parse หลัง save หรือมี delay นานพอให้ไม่อยากพึ่ง sidebar แต่ใน Spec-First Mode ของ Apidog outline อัปเดตระหว่างพิมพ์เร็วพอจนใช้เป็น navigation หลักได้

นี่สำคัญมากสำหรับ spec ขนาดใหญ่ เพราะ YAML ซ่อนโครงสร้างไว้ใน indentation และไฟล์ยาว ๆ การมี outline ที่ sync กับไฟล์ทันทีช่วยให้แก้ endpoint ได้เร็วขึ้นโดยไม่ต้อง search ตลอดเวลา

2. Git integration เป็นสองทางจริง

ผมทดสอบโดยแก้ไฟล์เดียวกันจาก local machine แล้ว push ผ่าน terminal ขณะที่ Apidog เปิดอยู่

ผลคือ Apidog ตรวจพบว่า workspace ตามหลัง remote สถานะ sync เปลี่ยน และสามารถดึงการเปลี่ยนแปลงเข้ามาได้จาก UI

สำหรับทีมที่มีทั้งคนใช้ Vim, VS Code, terminal และ Apidog นี่คือ workflow ที่ใช้งานได้จริง:

git checkout main
git pull
vim openapi.yaml
git add openapi.yaml
git commit -m "Update store token response"
git push

Enter fullscreen mode Exit fullscreen mode

คนที่อยู่ใน Apidog ก็ยังเห็นสถานะของ repository และ sync กลับเข้ามาได้ โดยไฟล์ใน Git ยังเป็นแหล่งความจริงเดียวกัน

3. สลับกลับไปใช้ visual designer ในโปรเจกต์เดียวกันไม่ได้

นี่เป็นข้อจำกัดที่ต้องบอกทีมก่อนเริ่ม

ถ้าสร้างโปรเจกต์เป็น Spec-First Mode โปรเจกต์นั้นจะเป็น spec-first ตั้งแต่ต้นจนจบ ไม่สามารถสลับกลางทางไปเป็น visual designer ในโปรเจกต์เดียวกันได้ เพราะ data model เบื้องหลังต่างกัน

ถ้าทีมต้องใช้ทั้งสองแนวทางกับ spec เดียวกัน วิธีที่ใช้งานได้คือ:

  1. เก็บ OpenAPI spec ไว้ใน Git repository
  2. ให้โปรเจกต์ Spec-First ชี้ไปที่ repository นั้น
  3. ให้ผู้ใช้ visual mode เปิดโปรเจกต์แยกที่ import จากแหล่งเดียวกัน

ไม่ใช่ workflow ที่ไร้รอยต่อ แต่ชัดเจนพอสำหรับทีมที่ต้องการคุม source of truth ใน Git

เหมาะกับทีมแบบไหน

ผมจะใช้โหมดนี้ใน production โดยเฉพาะถ้าทีมมี workflow ที่ถือว่า OpenAPI spec เป็น artifact หลักอยู่แล้ว

Spec-First Mode เหมาะถ้า:

  • ทีมเขียน OpenAPI ด้วยมืออยู่แล้ว
  • CI รัน lint กับ spec เช่น spectral lint
  • มีการ generate client SDK จาก spec
  • spec ต้องอยู่ใน Git อยู่แล้ว
  • engineer ต้องการเปิด pull request กับไฟล์ YAML
  • ทีมมีปัญหากับ workflow แบบ make export หรือ export จาก UI ที่ไม่มีใครมั่นใจว่าเป็นเวอร์ชันล่าสุด

ตัวอย่าง CI step ที่เข้ากับแนวทางนี้:

name: Validate OpenAPI

on:
  pull_request:
    paths:
      - "openapi.yaml"
      - "specs/**"

jobs:
  lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - name: Install Spectral
        run: npm install -g @stoplight/spectral-cli
      - name: Lint OpenAPI spec
        run: spectral lint openapi.yaml

Enter fullscreen mode Exit fullscreen mode

เมื่อ spec อยู่ใน Git จริง การ review จะตรงไปตรงมา:

 paths:
+  /store/token:
+    post:
+      summary: Create store token

Enter fullscreen mode Exit fullscreen mode

ทีมสามารถ comment ใน pull request ได้เหมือน review code ปกติ

ไม่เหมาะกับทีมแบบไหน

Spec-First Mode ไม่ใช่คำตอบสำหรับทุกทีม

ยังไม่เหมาะถ้า:

  • ทีมไม่เคยแตะ OpenAPI โดยตรง
  • visual designer คือเหตุผลหลักที่ทำให้ non-API specialist มีส่วนร่วมได้
  • ต้องการสลับระหว่าง visual mode และ spec-first ในโปรเจกต์เดียวกัน
  • contributor ส่วนใหญ่ไม่คุ้นกับ YAML, schema, path object หรือ response object

สำหรับทีมเหล่านี้ General Mode ยังเป็นตัวเลือกที่เหมาะกว่า เพราะลดแรงเสียดทานตอนเริ่มต้นได้มากกว่า

Spec-First Mode แลก onboarding ที่ง่ายขึ้นกับความแม่นยำของ source of truth ถ้าทีมยังไม่พร้อมดูแล spec เป็นไฟล์ การแลกเปลี่ยนนี้อาจไม่คุ้ม

ประเด็นสำคัญ

ก่อนหน้านี้ การทำ API แบบ spec-first มักแปลว่าต้องเลือกระหว่างสองอย่าง:

  • ใช้ YAML เป็นหลัก แล้วเสียความสะดวกของ API design platform
  • ใช้ visual designer เป็นหลัก แล้วเสีย Git ในฐานะแหล่งความจริง

สิ่งที่น่าสนใจใน Spec-First Mode คือ Apidog ลดการบังคับเลือกแบบนั้นลง ไฟล์ใน repo คือไฟล์ที่แก้ใน editor, outline เป็นมุมมองของไฟล์ ไม่ใช่ state แยก และ Git sync เป็นส่วนหนึ่งของ workflow ไม่ใช่ขั้นตอน export/import ภายหลัง

ถ้าทีมของคุณรอ API platform ที่จริงจังกับ spec-first มากกว่าแค่มีปุ่ม export โหมดนี้ควรอยู่ในรายการที่ต้องลอง

ตอนนี้เบต้าใช้งานได้จากกล่อง New Project เลือก Spec-First Mode ตอนสร้างโปรเจกต์ แล้วชี้ไปที่ repository ที่คุณเชื่อถืออยู่แล้ว การ commit ครั้งแรกใช้เวลาประมาณสิบนาที ส่วนการตัดสินใจว่าจะใช้ต่อหรือไม่ น่าจะใช้เวลาประมาณหนึ่งสัปดาห์