2. Terminology
2.1 CRUD Definition
Section titled “2.1 CRUD Definition”“CRUD” is an acronym popularized in the early 1980s that encompasses two kinds of operations applied to Resources:
- Read operations, such as querying, extracting and aggregating Resources;
- Write operations, which change the current state of Resources.
2.2 Anatomy and behavior of a CRUD operation
Section titled “2.2 Anatomy and behavior of a CRUD operation”A CRUD operation is made of:
classDiagram
direction LR
class Input
Input : Subject
Input : Parameters
Input : Metadata
class Output
Output : Result
Output : Metadata
Input --> Output : produces
- Input: data used to perform the operation, broken down into:
- Subject: the data the operation requires, such as Resources, Search Queries or Resource IDs;
- Parameters: optional data that changes the behavior of the operation, such as sorting, projection and pagination; and
- Metadata: data about the exchange itself, such as content negotiation (content type, encoding, serialization), operation metadata and Client and Server capabilities.
- Output: data returned by the operation, made of:
- Result: the result data, whether Resources, an error or nothing; and
- Metadata: the same kinds of metadata as the Input.
A CRUD operation involves the following Participants:
sequenceDiagram
Client->>Protocol: sends Input via
activate Protocol
Protocol-->>Server: requests to
Server->>Data source: performs operation in (through a Provider)
activate Server
Data source->>Server: returns Result
deactivate Server
Server-->>Protocol: responds using
Protocol->>Client: returns Output to
deactivate Protocol
- Client: the Participant that initiates the operation with standardized Input, for example a web server writing to a database or a mobile app requesting data from a web API.
- Protocol: the protocol that carries the Input to the Server and the Output back to the Client, such as HTTP or MCP, as defined by a protocol specification.
- Server: the Participant that performs the operation and returns the standardized Output, for example a web API or a database library that complies with this specification.
- Data source: where the Resources live and the operation is performed, such as a database, a file system or another API.
- Provider: the component of the Server that translates operations to a specific Data source.
2.3 The CRUD verbs
Section titled “2.3 The CRUD verbs”This specification defines a set of verbs that goes beyond the traditional CRUD acronym, as HTTP methods already do. “Retrieve” and “Update” are ambiguous and are split into distinct actions: get and list, patch and replace.
Given a Collection, the CRUD verbs are:
| Verb | Type | Description |
|---|---|---|
get |
Read | Retrieves a single Resource |
list |
Read | Lists Resources, optionally filtered by a Search Query (extensions, such as Views, may combine and process the result data) |
create |
Write | Creates one or many Resources |
patch |
Write | Updates Fields of one or many Resources |
replace |
Write | Fully replaces one or many Resources, with upsert capability |
delete |
Write | Removes one or many Resources |
2.4 The CRUD operations
Section titled “2.4 The CRUD operations”Each verb is executed differently depending on the Subject, so the verbs are derived into the following operations, suffixed with the Subject type when a verb has more than one:
| Operation | Verb | Subject |
|---|---|---|
get |
get |
The Resource ID |
list |
list |
Nothing; or a Search Query |
create |
create |
One or many Resources |
clone |
create |
The Resource ID of a source Resource (+ an optional patch) |
patchById |
patch |
The Resource ID + a patch |
patchByQuery |
patch |
A Search Query + a patch |
replaceById |
replace |
The Resource ID + a Resource |
replaceByQuery |
replace |
A Search Query + a Resource |
deleteById |
delete |
The Resource ID |
deleteByQuery |
delete |
A Search Query |
listByView |
list |
A View name (Views extension) |
2.5 Resources
Section titled “2.5 Resources”Each term below is used consistently in this specification. Synonyms used by other tools are listed so readers can map them; they are not used in the rules.
- Resource: a data object uniquely identified within a Collection. Also called document, record, row, item or object.
- Collection: a set of Resources, identified by a Slug. A Collection does not imply a schema: Resources in the same Collection may have different Fields. Also called resource type, entity, table or database.
- Field: a key-value pair of a Resource. Also called property, attribute or column.
- Resource ID: the value, made of one or more Fields, that uniquely identifies a Resource within its Collection (section 3.1.3).
- Resource Representation: the format, encoding and serialization used to transport a Resource during an operation, which may differ from how it is stored (section 3.1.4).
2.6 General terminology
Section titled “2.6 General terminology”In addition to the terms above, this specification uses:
-
Slug: An alphanumeric string in the format
^[a-zA-Z0-9_-]+$, preferably lowercase. -
uuid-hex: A UUID represented in its standard string format (RFC 9562, section 4) (hexadecimal, lowercase, hyphens). -
uuid-base64url: A UUID byte array represented as a base64url-encoded string (RFC 4648, section 5). Note thatbase64urlreplaces the 62nd and 63rd characters with-and_to make the encoding URL and filename safe.
Source: lingodata/crud@bc225ba · specs/base/sections/02-terminology.md · base 0.2.0 (draft)
LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.