Skip to content

3. Query string

The query string carries the Search Query and the Parameters of an operation. It follows the query string mapping of UnQuery (UnQuery section 4): keys starting with @ are control parameters, and other keys are conditions on Fields.

HTTP_CONTROL_PARAMS MUST

Servers MUST accept the Parameters they support with the control parameter names and values in the table below.

Parameter Value Implements
@q a complete UnQuery filter, in JSON or SQL syntax Base SEARCH_QUERY_UNQUERY
@fields a field list (Base section 3.3.1) Base PROJECTION_FIELD_LIST
@sort a field list Base SORTING_FIELD_LIST
@page, @limit integers, @page from 1 and @limit from 1 Base PAGINATION_PAGE
@offset integer from 0 Base PAGINATION_OFFSET
@cursor the opaque cursor of the next page Base PAGINATION_CURSOR
@expand a field list of relationship Fields Relationships REL_EXPAND (requires the Relationships extension)
@derive true or false Schema SCHEMA_DERIVE (requires the Schema extension, section 7)

HTTP_PARAM_VALUES MUST

Integers MUST be written in decimal and booleans as true or false. An invalid value MUST fail with the INVALID_INPUT error.

Preconditions, such as the expected match count and the denial of upserts, are header fields (section 4.8).

HTTP_CUSTOM_PARAMS MUST

Custom Parameters (Base section 3.3.3) MUST be written as @ followed by their name, and their names MUST NOT be equal to the control parameters of this specification.

HTTP_UNKNOWN_CONTROL MUST

A key starting with @ that is neither a control parameter nor a Custom Parameter of the Server MUST be ignored and reported as a PARAM_IGNORED Warning (Base PARAM_CUSTOM_UNKNOWN); with the strict preference, the operation fails.

HTTP_VIEW_PARAMS MUST

In listByView, keys equal to a parameter declared by the View (Views VIEW_PARAMS) MUST be interpreted as View parameters, without a prefix, and excluded from filtering (UnQuery QS_IGNORE_LIST). Every other key follows section 3.1 and UnQuery.

HTTP_VIEW_PARAM_VALUES MUST

View parameter values MUST be read from the query string as UnQuery values (UnQuery section 4) and then converted with the params schema of the View (Views VIEW_PARAMS_CONVERT).

HTTP_CONDITIONS_BY_ID MUST

Conditions in the query string of endpoints on a single Resource (/:collection/:id) MUST be ignored and reported as a CONDITION_IGNORED Warning, with the key in parameter; with the strict preference, the operation fails.

Source: lingodata/crud@bc225ba · specs/http/sections/03-parameters.md · http 0.2.0 (draft)

LingoData specifications, reference implementations and this site are licensed under the Apache License 2.0. Copyright 2026 Gustavo Gondim.