You are viewing the documentation for Blueriq 17. Documentation for other versions is available in our documentation directory.

Blueriq makes it possible to generate an OpenAPI feed based on your Blueriq REST Services and Exposed Function Flows. OpenAPI (previously known as Swagger) comes with multiple specifications for defining RESTful interfaces.

OpenAPI and the model in Encore

Read more about how information from the model is mapped to the OpenAPI feed here. 

REST Services

The interfaces for REST services can be found at the following locations:

1. Project URL

This feed contains information of all operations as defined in REST services that are exposed as webservice by the requested project.

{runtime-url}/server/rest/docs?project={project}&version={version}

Both project and version parameters are required. The OpenAPI version is optional.

Examples:

2. Shortcut URL

This feed contains information of all operations as defined in REST services that are exposed as webservice by the requested shortcut.

{runtime-url}/server/rest/docs?shortcut={shortcut}

The shortcut parameter is required.

You may also use the development dashboard to copy the OpenAPI spec URL in the widget named "Exposed Blueriq webservices":

Beware that you need both a "reload all projects" and a refresh of the browser for your new project to appear in the list. 

Function Flows

The OpenAPI feeds for Function Flows that are exposed as webservice are located at:

{runtime-url}/server/api/v2/function/docs?project={project}&version={version}

Both project and version parameters are required. 

{runtime-url}/server/api/v2/function/docs?shortcut={shortcut}

The shortcut parameter is required.

Each Function Flow that is exposed as webservice by the requested project is considered as Operation in the OpenAPI interface.

If the property blueriq.production.shortcutsOnly is set and the Runtime is running in production mode, the project feed will throw a forbidden exception.

Supported OpenAPI versions

Blueriq supports multiple versions of the OpenAPI specification. By default, version 3.1 of the specification is used, but the optional spec  query parameter can be used to request different versions:

spec query parameter valueOpenAPI version
33.1.0
3.03.0.3
3.13.1.0