Files
opencloud/services/groupware
Pascal Bleser 531e50fb73 API documentation changes for groupware-apidocs
* add example generator infrastructure, with some examples for pkg/jmap
   and pkg/groupware, with more needing to be done

 * alter the apidoc Makefile to stop using go-swagger but, instead, use
   the openapi.yml file that must be dropped into that directory using
   groupware-apidocs (will improve the integration there later)

 * add Makefile target to generate examples

 * bump redocly from 2.4.0 to 2.14.5

 * introduce Request.PathParam() and .PathParamDoc() to improve API
   documentation, as well as future-proofing

 * improve X-Request-ID and Trace-Id header handling in the middleware
   by logging it safely when an error occurs in the middleware
2026-02-04 09:40:23 +01:00
..

Groupware

The OpenCloud Groupware service provides a REST API for performing all the backend operations needed by the OpenCloud Groupware frontends.

OpenAPI Documentation

To generate the OpenAPI ("Swagger") documentation of the REST API, pnpm is a pre-requisite.

Run the following command in this directory to generate the swagger.yml OpenAPI definition file:

make apidoc

To generate a static HTML file using Redocly, which will generate a file api.html:

make apidoc-static

Path Parameters

Path parameters are documented in the file api-params.yaml and injected into the OpenAPI specification using the script apidoc-process.ts (which is done automatically when using the Makefile as described above.)

Favicon

A favicon is inserted into the static (Redocly) HTML file as part of the build process in the Makefile, using favicon.png as the source, computing its base64 to insert it as an image using a data URL in order to embed it.

That is performed by the script apidoc-postprocess-html.ts (which is done automatically when using then Makefile as described above.)