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

推荐订阅源

Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
量子位
M
MIT News - Artificial intelligence
Y
Y Combinator Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
Google DeepMind News
Google DeepMind News
Hugging Face - Blog
Hugging Face - Blog
博客园_首页
雷峰网
雷峰网
I
InfoQ
罗磊的独立博客
博客园 - 聂微东
酷 壳 – CoolShell
酷 壳 – CoolShell
大猫的无限游戏
大猫的无限游戏
D
Docker
H
Hackread – Cybersecurity News, Data Breaches, AI and More
腾讯CDC
博客园 - 三生石上(FineUI控件)
The GitHub Blog
The GitHub Blog
K
Kaspersky official blog
P
Privacy & Cybersecurity Law Blog
S
SegmentFault 最新的问题
T
Threat Research - Cisco Blogs
H
Help Net Security
小众软件
小众软件
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
C
CERT Recently Published Vulnerability Notes
WordPress大学
WordPress大学
T
Tenable Blog
T
The Blog of Author Tim Ferriss
C
Cisco Blogs
Simon Willison's Weblog
Simon Willison's Weblog
博客园 - Franky
A
Arctic Wolf
T
Threatpost
Scott Helme
Scott Helme
C
Cybersecurity and Infrastructure Security Agency CISA
D
Darknet – Hacking Tools, Hacker News & Cyber Security
T
The Exploit Database - CXSecurity.com
G
GRAHAM CLULEY
Security Latest
Security Latest
Spread Privacy
Spread Privacy
L
LINUX DO - 热门话题
V
Vulnerabilities – Threatpost
P
Privacy International News Feed
S
Schneier on Security
Latest news
Latest news
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
C
Cyber Attacks, Cyber Crime and Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com

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
[EN] How to Organize a REST API Tree to Survive Time (and Org Chart Changes)
Edgardo Genini · 2026-06-17 · via DEV Community

Also available in Spanish

Before designing an endpoint, classify its nature. Only then choose its location.

The Silent Problem

There are many articles explaining how to write a REST API. Here, instead, we will focus on a prior question: how to decide where an endpoint should live before writing it?

When that criterion does not exist, the placement of each new endpoint ends up depending on intuition, precedent, or negotiation among developers. The result is usually an API tree that works at first, but becomes increasingly difficult to navigate and maintain.

The symptoms are well known:

  • Nearly identical endpoints, created by different teams.
  • Frontends that must assemble multiple calls for a single screen.
  • URLs that reflect the org chart rather than the organization's core activity.
  • Implicit conventions known only to those who have been on the project for years.

There is usually no grand architectural mistake. There are hundreds of small, inconsistent decisions.

The Central Idea

This article proposes a pre-design classification criterion. The idea is simple: before thinking about the URL, you must understand what type of need you are solving.

The thesis that runs through the entire text is:

Before designing an endpoint, classify its nature. Only then decide where it should live.

This is not about naming conventions or yet another REST discussion. It is about a decision framework that can be applied regardless of architectural style.

Six Possible Classifications

The framework establishes six categories. Each one responds to a different endpoint nature.

Classification Suggested Location
Core Domain /{domain}/{resource}
View /views/{name}
Integration /integrations/external/... and /integrations/webhooks/...
Process /processes/{name}
Configuration /configuration/{table}
System /system/{operation}

As a general rule, when a requirement seems to fit more than one classification, it is best to prioritize the most specific and restrictive one. These six categories are the mechanism through which we solve the lack-of-criterion problem.

Core Domains: The Source of Truth

Core Domains represent the source of truth for the main activity. They contain atomic operations on their fundamental entities. They usually correspond to the central concepts managed by the organization: customers, orders, products, accounts, etc.

Example:

GET /api/v1/sales/orders/{id}
POST /api/v1/sales/orders

Here the operations are atomic, affect a single entity, and respect the principle that the HTTP method defines the action.

Views: Decouple the Consumer

Views do not exist solely to simplify queries. Their most valuable purpose is to decouple the consumer from the internal structure of the core domains.

A screen, a report, or an external system should not need to know how the core domains are organized internally. Views act as a decoupling layer: if tomorrow a domain is split or reorganized, the consumer can continue using the same View while the backend adapts its implementation.

Example:

GET /api/v1/views/sales-summary-by-customer

That summary may combine data from orders, payments, and shipments. The frontend receives exactly what it needs, without assembling calls or knowing the internal structure.

Processes: When the Goal Is to Execute, Not to Operate on an Entity

The Processes category groups endpoints whose nature is not to operate on a core domain entity, but to execute a coordinated sequence of actions. This may include:

  • A month-end close
  • A bank reconciliation
  • A reversal or compensation of a complex operation
  • A balance recalculation
  • A settlement
  • A registry synchronization
  • A heavy batch process
  • Any other routine that does not naturally fit into an entity CRUD

The name "processes" is intentionally broad. It does not assume massiveness or the number of entities affected. It only assumes that the endpoint exists to trigger a process, not to read or modify an atomic resource.

Examples:

POST /api/v1/processes/month-end-close
POST /api/v1/processes/reverse-operation/{id}
POST /api/v1/processes/bank-reconciliation

The question that defines this category is:

Does the endpoint exist to operate on a core domain entity, or to execute a process?

If the answer is "process," its place is /processes.

A Practical Example: Importing Customers

Suppose the following requirement appears:

"The system must allow importing customers from an Excel file."

Without a clear criterion, different teams might propose different locations for the endpoint:

POST /customers/import
POST /customers/import
POST /admin/customer-import
POST /batch/customers/import

All alternatives seem reasonable, but they respond to different intuitions. The result is that, over time, the API tree ends up growing inconsistently.

Applying this framework's decision flow:

  • Does it interact with an external system? → No.
  • Is it a read that composes multiple domains? → No.
  • Is the goal to operate on a core domain entity? → No. It is not creating, modifying, or querying a customer atomically. The endpoint does not receive a representation of a Customer resource to operate on it atomically; it receives a binary file (Excel) that requires parsing, batch validations, and heavy coordination logic.
  • Is the goal to execute a process? → Yes.

Therefore, the correct classification is Processes, and a coherent location would be:

POST /processes/customer-import

The important thing to observe is that the decision does not depend on the entity involved, but on the nature of the endpoint. Even though the process works on customers, the endpoint exists to trigger an import, not to operate on the customers resource.

This example illustrates the main goal of the framework: that two different architects, faced with the same requirement, reach the same decision by following the same reasoning, instead of depending on personal preferences or implicit conventions.

Integrations, Configuration, and System

  • External Integrations: to invoke external systems (active client). Example: /integrations/external/salesforce/contacts. The contract is defined by the third party, and that determines both the location and the versioning policy: it is not the system's internal lifecycle that governs this interface.
  • Webhooks: to receive notifications from external systems. Example: /integrations/webhooks/paypal/payment-completed. The same logic applies in reverse: it is the third party that imposes the URL that must be exposed, which is why forcing it inside /api/v1/ would be an empty convention.
  • Configuration: for parametric or global tables. Example: /configuration/taxes. These data exist as a separate lane because they are cross-cutting across multiple domains and do not have a clear domain owner; placing them inside any core domain would be an arbitrary decision.
  • System: for technical operations of the API itself. Example: /system/health. The inclusion rule is the absence of business semantics: if the endpoint makes sense to the business, it does not belong here.

Where Do Domains Come From? APQC and TM Forum

Defining high-level domains is usually a challenge. Inventing a proprietary taxonomy for each organization can lead to endless discussions and a tree that ends up reflecting the org chart rather than the actual activity.

To avoid this, the framework relies on mature and widely tested taxonomies:

  • APQC PCF (Process Classification Framework): ideal for organizations with physical operations, logistics, manufacturing, and traditional corporate processes.
  • TM Forum eTOM (enhanced Telecom Operations Map): designed for digital services organizations, telecommunications, platforms, and subscriptions.

Relying on these models is not a secondary detail. It is one of the greatest strengths of the approach, because it reduces naming discussions and makes the tree reflect operational reality.

By way of illustration, some examples of how these taxonomies translate into concrete URLs:

Taxonomy Examples of Domains and Resources
APQC /finance/chart-of-accounts
/logistics/inventories
/sales/opportunities
TM Forum /customer/subscribers
/operations/billing
/resources/licenses

In the catalog available at you will find the detailed context trees based on APQC PCF and TM Forum eTOM, with a much more extensive list of domains and resources.

Rule: APQC and TM Forum are only used to structure the core domains. The other categories are cross-cutting and do not follow any business taxonomy, because their nature is not to operate on domain entities.

Decision Flow

To apply the classification in day-to-day work, it is useful to follow a practical decision flow:

Does it interact with an external system?
│
├── Yes → Is it an active call or a webhook?
│         ├── Active call → /integrations/external/{system}
│         └── Webhook → /integrations/webhooks/{source}/{event}
│
└── No → Is it a read that composes multiple domains?
         │
         ├── Yes → /views/{name}
         │
         └── No → Is the goal to operate on a core domain entity?
                  │
                  ├── Yes → /{domain}/{resource}
                  │
                  └── No → Is the goal to execute a process?
                           │
                           ├── Yes → /processes/{name}
                           │
                           └── No → Is it global configuration?
                                    │
                                    ├── Yes → /configuration/{table}
                                    │
                                    └── No → /system/{operation}

This tree is not dogma. It is a practical tool that helps maintain consistency when different teams or people design new endpoints.

Some Useful Conventions

Beyond classification, there are good practices worth adopting:

  • Use kebab-case throughout the URL (example: processes/month-end-close).
  • Avoid verbs in the path; the action is defined by the HTTP method.
  • Maintain uniform semantics for identifiers.

On the /api prefix

The /api prefix is used to separate programmatic interface endpoints from other server resources (static files, admin pages, etc.). It is not mandatory, but it is a widely adopted practice that allows applying specific policies (authentication, rate limiting, logging) over the entire API tree consistently. This article assumes its use, but each organization can decide whether to include it or not.

On Versioning

The /api/v1/ convention at the beginning of the URL is useful when all endpoints in a category share the same lifecycle. This naturally applies to Core Domains and Views.

However, other categories respond to contracts whose owner and evolution are external to the system. For example:

  • A PayPal or Stripe webhook imposes the URL that must be exposed. It makes no sense to force it inside /api/v1/.
  • An active integration with Salesforce may need its own versioning, for example /integrations/external/salesforce/v2/..., independent of the global versioning.

General rule: the /api/v1/ prefix should not be applied mechanically to all categories. Each classification may define its versioning policy according to its nature. For integrations and webhooks, the versioning strategy derives from the contract that governs that interface, not necessarily from the global API versioning.

To Close

A good API architecture is not about finding a place for every endpoint. It is about having a criterion that makes that place obvious before writing it.

When two different architects reach the same decision by following the same reasoning, the tree stops depending on intuition and becomes part of the system's architecture. Discussions about where to place a new endpoint become fast, predictable, and grounded.


This work is intended as a starting point. Rather than establishing immutable rules, it seeks to propose a classification criterion that can be enriched by the community's experience and debate. No framework survives without evolution, and neither will this one.


Final note: the proposal of the six classifications and the decision flow is open. If your organization finds that an additional category or a variant works better, the fundamental principle —classify before designing— remains what really matters.