Reserved words

A list of reserved words exists for common used practices

Query parameters

Term Description Example Ref

page

When a collection resources is paged, use this parameter to request a specific page. Page numbers are 1-based.

?page=3&pageSize=20

Pagination

pageSize

When a collection resources is paged, use this parameter to specify the page size.

?page=3&pageSize=20

Pagination

q

The standard search parameter to do a full-text search.

?q=Proximus

Filtering

select

Filter the resource properties to the ones specified.

?select=(name,address)

Consult (Document)

sort

Multi-value query param with list of properties to sort on. Default sorting direction is ascending. To indicate descending direction, the property may be prefixed with -.

?sort=age&sort=-name

Collection

embed

Request to embed subresource

?embed=mainAddress

Embedding resources

lang

language to filter multi-language descriptions

?lang=fr

Multi-language descriptions

JSON properties

Term Description Example Ref

next

The next-reference contains the absolute URL of the next page in a paged collection result.

"next": "https://api.example.org/demo/v1/enterprises?page=3&pageSize=2"

Links

prev

The previous-reference contains the absolute URL of the previous page in a paged collection result.

"prev": "https://api.example.org/demo/v1/enterprises?page=1&pageSize=2"

Links

self

The self-reference contains the absolute URL of the resource itself.

"self": "https://api.example.org/demo/v1/enterprises/202239951"

Links

href

A reference (absolute URL) to another resource.

"href": "https://api.example.org/demo/v1/enterprises/0202239951"

Links

first

A reference (absolute URL) to the first page in a paged collection result.

"first": "https://api.example.org/demo/v1/enterprises?pageSize=2"

Pagination

last

A reference (absolute URL) to the last page in a paged collection result.

"last": "https://api.example.org/demo/v1/enterprises?page=4&pageSize=2",

Pagination

items

an array with the items of a collection result.

Collection

total

the total number of items in a collection result, after filtering.

Collection

page

the index of a page in a paged collection result

Pagination

pageSize

the maximum number of items in a page of a paged collection result.

Pagination

embedded

a map of embedded subresources, with URIs as property key and the resource as value

Embedding resources

HTTP headers

This list includes all standardized and common non-standard HTTP headers.

Rule: HTTP header names [hdr-case]

Applications MUST treat HTTP header names as case-insensitive as per the HTTP specification.

However, by convention, Kebab-Case with uppercase SHOULD be used for readability and consistency.

Rule: Custom HTTP headers [cst-header]

Custom HTTP headers SHOULD be prefixed with the organization’s name.

Custom headers that are standardized across Belgian Government organizations use the BelGov- prefix.

X- headers were initially reserved for unstandardized parameters, but the usage of X- headers is deprecated (RFC-6648). Instead, it is recommended that organization’s specific header names should incorporate the organization’s name. However, for backwards compatibility reasons, headers with the X- prefix may still be used.

Table 1. Standard HTTP Headers referenced in the style guide
HTTP Header Type Description Reference

Location

Response

Used in redirection, or when a new resource has been created.

Create a new resource, POST, status codes 301, 303 and 307

Accept

Request

Media type(s) that is(/are) acceptable for the response.

http.adoc#media-types

Content-Type

Request/Response

The Media type of the body of the request.

http.adoc#media-types

X-HTTP-Method-Override

Request

Override the method specified in the request.

PATCH

Retry-After

Response

Suggest amount of time for the client to wait before retrying the request when temporarily unavailable or quota reached

Service Unavailable, Too Many Requests, Too Many Failed Requests

Allow

Response

Valid methods for a specified resource.

405 Method Not Allowed

ETag

Request

Identifier for returned response content

Conditional requests

If-None-Match

Response

Return resource if ETag changed

Conditional requests

Last-Modified

Request

Time on which resource was last modified

Conditional requests

If-Modified-Since

Response

Return resource only if changed since specified timestamp

Conditional requests

Vary

Response

Specifies which request headers change response content

Client caching directives

Cache-Control

Response

Indicates HTTP client how to cache responses

Client caching directives

Table 2. BelGov HTTP headers
HTTP Header Type Description Reference

BelGov-Trace-Id

Request/Response

Unique ID for tracing purposes, identifying the request or response

Tracing

BelGov-Related-Trace-Id

Response

BelGov-Trace-Id value used on related request

Tracing

Resource names

path Description Reference

/doc
/doc/openapi.yaml
/doc/openapi.json

API documentation (OpenAPI description and other)

doc resource

/refData

resources representing reference data used in the API (i.e. code lists)

doc resource

/health

API health status

Health