Linx Main Linx Help

API Documentation generation

API Documentation

A new API documentation feature has been added to the SimpleRESTHost and RESTHost .

This functionality involves automatically generating the API documentation of the service.

In order to generate the documentation when the service is active, select the type of API documentation from the service Properties in the Linx Designer:

  • None: No documentation will be generated.
  • Swagger: Documentation will be generated with Swagger UI
  • Redocly: Documentation will be generated with Redocly

Once the service is deployed and activated, navigate to:




So for example, if my Base URI is configured to:


And I’m hosting it on the cloud server:

To access the API Documentation, I would navigate to:

This then allows external users to view the possibilites of the web service.

If you are still developing your web service, you are also able to generate the API documentation locally using service debugging by setting your Base URI to:


To access the API Documentation locally, the service is debugged then the below URL is navigated to:


Generating an API Definition

You are also able to access the actual API definition of the web service which can then be used to:

  • Convert a SimpleRESTHost into a RESTHost by importing the the Open API Definition as the API Definition property.
  • Import the definition into another Solution
  • Use the definition externally

To download the API definition, navigate to the below URL:


Alternatively, click on the below relevant options:



Swagger UI

This will then generate the Open API Definition like below:

  "openapi": "3.0.1",
  "info": {
    "title": "Web API",
    "version": "1"
  "servers": [
      "url": "http://localhost:8080/service"
  "paths": {
    "/customers": {
      "get": {
        "operationId": "GetCustomers",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "type": "string"
  "components": {}

You can then copy this JSON structure out and import it as the API Definition of the RESTHost .

Next steps:

:dart: Get started with a “Hello World!” API.