Reserved words

A list of reserved words exists for common used practices

Query parameters

TermDescriptionExampleRef
pageWhen a collection resources is paged, use this parameter to request a specific page. Page numbers are 1-based.?page=3&pageSize=20???
pageSizeWhen a collection resources is paged, use this parameter to specify the page size.?page=3&pageSize=20???
qThe standard search parameter to do a full-text search.?q=Belgacom???
selectFilter the resource properties to the ones specified.?select=(name,address)???
sortMulti-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???
embedRequest to embed subresource?embed=mainAddress[???](#Embedding resources)
langlanguage to filter multi-language descriptions?lang=fr[???](#Multi-language descriptions)

JSON properties

TermDescriptionExampleRef

next

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

"next": "{API}/companies?page=3&pageSize=2[/companies?page=3&pageSize=2^]"

???

prev

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

"prev": "{API}/companies?page=1&pageSize=2[/companies?page=3&pageSize=2^]"

???

self

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

"self": "{API}/companies/202239951[/companies/202239951^]"

???

href

A reference (absolute URL) to another resource.

"href": "{API}/companies/202239951[/companies/202239951^]"

???

first

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

"first": "{API}/companies?pageSize=2"

???

last

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

"last": "{API}/companies?page=4&pageSize=2",

???

items

an array with the items of a collection result.

???

total

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

???

page

the index of a page in a paged collection result

???

pageSize

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

???

embedded

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

???

HTTP headers

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

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 non-standardized parameters, but the usage of X- headers is deprecated (RFC-6648). Instead, it is recommended that company specific header’ names should incorporate the organization’s name. However, for backwards compatibility reasons, headers with the X- prefix may still be used.

HTTP HeaderTypeDescriptionReference
LocationResponseUsed in redirection, or when a new resource has been created.[???](#Create a new resource​), ???, status codes 301, 303 and 307
AcceptRequestMedia type(s) that is(/are) acceptable for the response.[???](#Media Types)
Content-TypeRequest/ResponseThe Media type of the body of the request.[???](#Media Types)
X-HTTP-Method-OverrideRequestOverride the method specified in the request.???
Retry-AfterResponseSuggest 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)
AllowResponseValid methods for a specified resource.???
ETagRequestIdentifier for returned response content[???](#Conditional requests)
If-None-MatchResponseReturn resource if ETag changed[???](#Conditional requests)
Last-ModifiedRequestTime on which resource was last modified[???](#Conditional requests)
If-Modified-SinceResponseReturn resource only if changed since specified timestamp[???](#Conditional requests)
VaryResponseSpecifies which request headers change response content[???](#Client caching directives)
Cache-ControlResponseIndicates HTTP client how to cache responses[???](#Client caching directives)

Standard HTTP Headers referenced in the style guide

HTTP HeaderTypeDescriptionReference
Company-Trace-IdRequest/ResponseUnique ID for tracing purposes, identifying the request or response???
Company-Related-Trace-IdResponseBelGov-Trace-Id value used on related request???

Resource names

pathDescriptionReference
/docsBrowseable API documentation UI
/openapi.jsonAPI documentation (swagger file and other)???
/refDataresources representing reference data used in the API (i.e. code lists)???
/healthAPI health status???
/metricsMetric responses