Skip to main content
Skip table of contents

API

The API folder stores all APIs of your Designer service. Here, you can enhance the API of your service and model e.g. a REST API in the form of resources with RESTful interfaces.
Refer to API Implementations for more information on how to implement an API.

API Folder Options

In a newly created service, the API folder is empty:

api_folder_empty.png

Adding an API

To create new APIs within the folder, hover over the API folder and use the quick action to create e.g. a REST API:

add_rest_api_qa.png

Alternatively you can create a new API via the context menu:

add_rest_api_cm.png

A pop-up window opens where you need to enter a name for the API. Click Save to create the new API:

popup_add_rest_api.png

A BPMN model name must be unique within one service.

In addition, the following name restrictions apply to all service panel elements:

Element names...

  • ... must not be empty.

  • ... must not contain spaces. Exception: Spaces are allowed in operation names.

  • ... must not start with numbers.

  • ... must not end with a period (.).

  • ... must not contain one of the following characters: <, >, :, ", /, \, |, ?, *

  • Furthermore, the following strings must not be used as element names: CON, PRN, AUX, NUL, COM1, COM2, COM3, COM4, COM5, COM6, COM7, COM8, COM9, LPT1, LPT2, LPT3, LPT4, LPT5, LPT6, LPT7, LPT8, LPT9.

The API is added to the tree in the API folder:

Adding a Port

Before defining the actual API, you need to add a port to the API that connects the API to the interface description. When you hover over the API, you can create a Port within the API using the quick action that appears, e.g. a Rest Port:

Alternatively you can create a new port via the context menu:

A pop-up window opens where you need to enter a name for the port. For information on naming restrictions, see above. Click Save to create the new port:

popup_add_rest_port.png

The port is added to the tree in the API folder below the API:

Via the context menu of the port you can create further elements (classes and interfaces) within the port. Furthermore it offers you other element options such as renaming and deleting the port:

The possible quick actions and context menu options for all elements within a port are explained in detail on page Modeling APIs.

Further Options

For detailed explanations of the further item options for an API and a Port, such as cut, copy, paste, rename, and delete, refer to Service Panel.

Related Pages:

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.