Swagger and OpenAPI integration for OData documentation

<< Click to Display Table of Contents >>

Navigation:  Low-code Process Automation > Studio Cloud - Authoring environment > Bizagi Studio > Bizagi from external applications > Bizagi API > OData RESTful services >

Swagger and OpenAPI integration for OData documentation

Overview

Bizagi integrates Swagger and OpenAPI to offer interactive documentation for OData endpoints in development environments. You can generate credentials in the Work Portal to explore endpoints, review parameters, test requests, and verify service responses in Swagger UI or in external API client tools, like Bruno, by downloading a JSON file available in Swagger 2.0 and OpenAPI 3.0 format that contains all OData endpoints.

 

note_pin

Available only in development environments.

 

Using Swagger and OpenAPI in Bizagi

Authorizing requests

1.Generate a Client ID and a Client Secret using the Work Portal. Follow the instructions found in OAuth 2.0 Applications options and use the following required values to configure your access keys:

 

Name: Name of the credentials (for example: swaggerToken).

Grant Type: ClientCredentials

Allowed Scope: API

User Name: Name of an existing Bizagi user.

Token lifetime (mins) & Lifecycle type: Based on your security policies.

 

2.Open Swagger UI in the development environment, using the following URL:

 

https://{host}/{app}/swagger/ui/index#!/

 

note_pin

The base URL (https://{host}/{app}/) is the URL used to access your Work Portal in the development environment. For example, if your development environment is live, its structure may look like this:

Environment: Development (dev).

Project name: Loans (loans).

Company: Digital Bank (digitalbank).

 

https://dev-loans-digitalbank.bizagi.com/swagger/ui/index#!/

 

If your development environment is local, for the built‑in Work Portal the URL is shown below:

 

http://localhost/loans/swagger/ui/index#!/

 

3.Navigate to Authorization, enter the credentials to obtain the token and click Authorize.

 

SwaggerOData01

 

If the token is generated correctly, a message confirms it and the token begins to be used for all endpoints.

 

SwaggerOData02

 

If an error occurs while generating the token, a message informs you and you must generate new credentials to try again.

 

SwaggerOData03

 

Testing an OData endpoint

1.Select the controller and operation.

 

SwaggerOData04

 

2.Review the parameters.

 

SwaggerOData05

 

3.Add OData query options if needed.

 

SwaggerOData06

 

4.Click Try it out to see the response.

 

SwaggerOData07

 

Downloading and testing in external tools

Downloading the JSON file

You can import the JSON schema into Bruno or similar tools.

1.Go to the download link for the JSON file.

 

SwaggerOData08

 

Use the following URLs depending on the format you want to download:

 

Swagger 2.0: https://{host}/{app}/swagger/docs/v1

OpenAPI 3.0: https://{host}/{app}/swagger/oas3/v1

 

note_pin

Keep in mind that the base URL (https://{host}/{app}/) corresponds to the same Work Portal URL structure described above.

 

2.When the page opens,  right-click the text and select Save as.

 

SwaggerOData09

 

3.On the File Explorer review the file type and click Save.

 

SwaggerOData10

 

Import File into Bruno

1.Open Bruno.

2.In the left panel, in the Collections menu options, select the + icon.

3.Click Import collection.

 

SwaggerOData11

 

4.In the Import Collection modal window, open the File tab and drop your file or click Choose file to browse for it.

 

SwaggerOData12

 

5.Select a Location for the new collection.

6.Make sure the OpenCollection (YAML) format is selected.

7.Click Import.

 

SwaggerOData13

 

Your collection must now appear listed under Collections. Select it to continue.

 

SwaggerOData14

 

Configure the token in your collection

1.Go to the Get the authorization token section in Bizagi API authentication and follow the instructions using the Client Credentials generated in the Work Portal.

2.Open Bruno and go to the Auth tab.

 

SwaggerOData15

 

3.Open the Authorization dropdown list.

 

SwaggerOData16

 

4.Select the required format:

 

SwaggerOData17

Swagger 2.0: Bearer

OpenAPI 3.0: API Key

 

5.Enter the token.

If you selected Bearer (Swagger 2.0):

oIn the Token text field type {{token}}

 

SwaggerOData18

 

oHover over {{token}} and type in the token.

 

SwaggerOData19

 

oClick Save.

 

SwaggerOData20

 

If you selected API Key (OpenAPI 3.0):

oFill in the following fields:

Key: Authorization

Value: {{ApiKey}}

Add to: Header

 

SwaggerOData21

 

oHover over {{ApiKey}} and type in the token.

 

SwaggerOData22

 

oClick Save

 

SwaggerOData23

 

Your token configuration now applies to your entire collection.

 

SwaggerOData24

 

Start testing

You can begin testing endpoints. To do so, define the baseUrl parameter first:

1.In your collection, go to the Vars tab.

 

SwaggerOData25

 

2.Click the first empty row to add a new parameter.

 

SwaggerOData26

 

3.In the Name column, type baseUrl.

4.In the Value column, type your Work Portal development URL.

5.Make sure the row is selected.

 

SwaggerOData27

 

6.Go to the endpoint you want to test and click the arrow icon to send a request.

 

SwaggerOData28

 

You can now review the response.

 

SwaggerOData29

 

note_pin

Swagger 2.0 and OpenAPI 3.0 may behave differently in external tools (including token formatting).


Last Updated 7/14/2026 2:49:24 PM