OINO.cloud APIs support the standard HTTP headers for specifying content types, Content-Type for the POST/PUT request body and Accept for GET response data.
For example an HTML form posts its data with Content-Type application/x-www-form-urlencoded, which the API reads directly.
For responses, the first supported content type listed in the Accept header is used, so a browser navigating to an API url gets HTML. If none of the listed types is supported (e.g. */*, the HTMX default) the response is JSON, so set it explicitly when needed, e.g. hx-headers='{"Accept": "text/html"}'.
These headers can be overridden by the oinorequesttype and oinoresponsetype query parameters in the request URL for example if you want data in specific format.
The following content types are supported:
null as an SQL null-value.