route
The combination of HTTP method and URL path that a server maps to one handler, such as GET /orders/{id}.
In more detail
Routes are part of an API's public contract, so they should describe resources rather than internal service or database names. Changing a route breaks any client that calls it.
Examples
GET /orders/{id} handled by OrdersApi.getIn the App Router the folders under app/ form the route tree, and a folder is public only if it contains page.tsx or route.ts.Loading each React route code only when it is visited is the most common kind of code splitting.Related terms
- request mapping — The annotations, such as @GetMapping("/orders/{id}"), that connect an HTTP method and path to a controller method.
- HTTP method — The verb at the start of a web request that says what the client wants, such as GET to read or POST to create.
- endpoint — An address that a program sends requests to, such as a web path like /health or a network socket.
- API contract — The written promise an API makes about its operations, inputs, outputs and errors, which callers rely on while the code behind it changes.
- route segment — One part of a URL path between slashes, such as dashboard in /dashboard/settings, matching one folder in app/.
- app directory — The folder, app/ or src/app/, whose subfolders and special files define every route in an App Router project.
- page.tsx — The special file that makes a route segment publicly reachable and holds the content shown at that URL.
- URL — A web address, such as https://example.com/docs, made of a scheme, a host, an optional port and a path.
- code splitting — Dividing an app JavaScript into several files that load only when needed, instead of one big file up front.
Taught in
- Controllers And Routing — Modern Java: Virtual Threads & High-Throughput Services
- Exception Handling To Problem Details — Modern Java: Virtual Threads & High-Throughput Services
- Implementing An OpenAPI Contract — Modern Java: Virtual Threads & High-Throughput Services
- Testing APIs With MockMvc — Modern Java: Virtual Threads & High-Throughput Services
- Root & Nested Layouts: State Preservation Semantics — Next.js 15 & Modern App Router Architecture
- Templates vs Layouts: Remounting & Page Transitions — Next.js 15 & Modern App Router Architecture
- Dynamic Routes: Slugs & generateStaticParams — Next.js 15 & Modern App Router Architecture
- Route Groups & Private Folders: Modular Structures — Next.js 15 & Modern App Router Architecture
- Parallel & Intercepting Routes: Modals & Split Views — Next.js 15 & Modern App Router Architecture
- Loading UI: Instant Loading States with loading.tsx — Next.js 15 & Modern App Router Architecture
- Component Purity: Pure Functions, Idempotence And Side Effects — React 19 & Modern Component Architecture
- Code-Splitting with React.lazy: Dynamic Imports And Chunks — React 19 & Modern Component Architecture