Web Application Fundamentals
-
Matching a Web Request to a Route
A web application maps request targets and often methods to handlers. The route decides which application code receives the request.
-
Reading a Path Parameter in a Web Route
A path parameter derives a value from one part of a route. Its parsed type and domain bounds depend on the routing and application contracts.
-
Representing Page Filters in Query Parameters
A query can describe a view of a collection, such as its search text, sort order, or selected subset.
-
A Web Resource and Its Representations
A resource can be identified by an endpoint while several representations convey some of its state.
-
Form Fields as Submitted Name-Value Pairs
A form submission serializes participating controls under form rules. The server receives values and assigns them types and domain meanings.
-
A Search Form That Produces a Shareable URL
A search form can express a read operation through query values on a GET request. The resulting URL can carry the chosen search state.
-
Redirecting After a Successful Form Submission
A successful state-changing form can redirect to a readable result so subsequent page refreshes request its representation.
-
Server Validation for Form Data
A server interprets submitted values under its own current application rules. Browser-side checks can help guide users before sending.
-
Linking Form Errors to the Fields They Describe
A server-side rejection can identify each affected field so people and interfaces know which input needs correction.
-
Pagination with a Page Number and Offset
Page-number pagination translates a selected page into a range of positions in a declared order.
-
Continuing a Result List with a Cursor
A pagination cursor can identify a place in a specified order, allowing a follow-up query for records past that boundary.
-
Linking a Collection to Its Detail Pages
A collection lets readers discover records; a stable detail URL gives each item a predictable sharing and retrieval address.
-
An Empty Collection and a Missing Resource
A successful collection query can contain no items. A missing individual record is a distinct outcome under a detail endpoint's contract.
-
Repeated Field Names in Web Inputs
A form or query can supply several values under one name. A receiver needs a defined policy for single-value fields and lists.
-
Different Methods on One Web Route
A resource path can support several HTTP methods with distinct handler behavior, even when they operate on the same record.
-
Returning to the Right List State
A detail page can keep a meaningful link back to the list or search from which it was opened.
-
Request, Render, and Response in a Server-Rendered Page
A server-rendered page combines selected data with a template and returns a representation the browser can display directly.
-
Structured Error Responses for an HTTP API
Problem details can give an API response a machine-readable problem type and useful human context under a documented format.
-
Session State and Data Sent with One Request
An application can associate state with a session while each request still supplies its own method, target, and values.
-
Default Choices in a Web Form
A form can prefill a conventional value while leaving a user's explicit changes and the backend rule distinguishable.
-
Validating a Previously Read Web Representation
A client can make a conditional request to learn whether a stored representation is still suitable, under the HTTP validator rules.
-
Caching Public and Personal Representations
HTTP responses can have different cache rules according to whether the selected representation may be reused across users or requests.
-
A Form Containing Text Fields and a File
A form submission can carry both ordinary fields and file data. The server should treat the file's declared metadata and actual contents as separate observations.
-
Previewing an Edit Before Publishing
A preview can render an unsaved or draft representation without changing what the public resource currently shows.
-
A Canonical Address for Equivalent Page URLs
Several URLs can expose the same representation. A site can identify its preferred URL consistently so links and discovery point to one durable location.
-
How Links and Sitemaps Expose Published Pages
A link exposes a destination through a browsable page. A sitemap can list preferred URLs for crawlers that process that file.
-
A Slow Service and an Empty List Are Different Results
A web application needs a way to represent valid empty data separately from data it could not retrieve within the available time.
-
Choosing a Stable Order for Web Result Lists
A web result list needs a repeatable order before applying a page limit or cursor. Ties should be resolved by a meaningful stable field.
-
Tracing Input Through a Web Page Template
A rendered page combines template structure with data values. Each value needs handling appropriate to where it is presented.
-
Testing a Web Form End to End
A form test can exercise submission, server interpretation, storage effects, and visible feedback under actual route behavior.