--- title: "REST API" slug: "custom-rest-api-definition" status: "update" updated: 2026-11-12T13:15:00Z published: 2026-11-12T13:15:00Z canonical: "docs.lobstersoftware.com/custom-rest-api-definition" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.lobstersoftware.com/llms.txt > Use this file to discover all available pages before exploring further. # REST API This article describes the REST API class (`RestApi`) within the **API** entity type (`RestApiDefinition`). Through the **API** field (`api`), the class binds endpoints for a custom REST API that the **Lobster Data Platform** server provides. The **REST API Definition** entity type (`RestApiDefinition`) can alternatively be used for MCP tools. In that case, the **MCP Server** class (`McpRestApi`) is used instead of the **REST API** class. For details, see [MCP Server](/v1/docs/en/mcp-server). The common starting point for managing all `RestApiDefinition` instances is the menu entry [API Manager](/v1/docs/en/integration-modules-rest-api). It contains shared details for all definitions. The detail window (`de.lobster.scm.api::RestApiDefinition|detailsWindow`) contains two tabs with content specific to the **REST API** class: - **API** (available for REST API and MCP Server) - **Meta information** (REST API only) ## Further topics Due to the scope, details are split across the following sub-topics: - [REST API: URI and URI parameters](https://docs.lobster-world.com/docs/en/custom-rest-api-uri-parameter): URI format, URI parameters with separators, dynamic paths via regular expressions. - [REST API: Client object input type (ASObject)](https://docs.lobster-world.com/docs/en/custom-rest-api-client-object): Client object structure, Aerodrome example, HTML form data. - [REST API: Advanced endpoint settings](https://docs.lobster-world.com/docs/en/custom-rest-api-advanced-settings): Anonymous access, sunset, policy settings, OpenAPI error codes. - [REST API: Action block context](https://docs.lobster-world.com/docs/en/custom-rest-api-action-block-context): Declared variables, return value, anonymous vs. authorized access. - [REST API: Meta information and versioning](https://docs.lobster-world.com/docs/en/custom-rest-api-meta-versioning): `RestApiMetadata` structure, versioning approaches. ## API tab ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-1WBGWWTM.png) ### Header area The header area contains elements not tied to a specific endpoint. In the text field for the **base URI** property (`baseUri`), you enter the common base address for all endpoints of the REST API instance. The **Show OpenAPI documentation** link opens a new browser tab. There, you see an auto-generated *Swagger* documentation for all endpoint configurations under this **base URI**. The OpenAPI documentation only includes the saved state of all active REST API definitions under the same **base URI**. Endpoint definitions from inactive REST API definitions do not appear. If multiple active REST API definitions provide endpoint definitions for the same endpoint **URI** (`uri`), their priority value determines which one applies. For details, see [API Manager](/v1/docs/en/integration-modules-rest-api). The OpenAPI documentation shows only the effectively active endpoint. Which REST API definition provides the endpoint is not visible in the documentation. ### Endpoints list Below the header area, a data grid element on the left half of the detail area shows all configured endpoints. - For a new REST API, the list is empty. - The buttons to the right of the list let you add an endpoint () or remove the displayed endpoint (). - Clicking a row selects a list entry. The detail area then shows the corresponding data. - When you first open the tab, no entry is selected. The detail area remains empty. - Clicking an already selected entry deselects it. The detail area then shows no data. - While the list has focus, you can also navigate with the cursor keys (↑↓). The selected entry appears in the primary color. For details on the primary color, see [Styles](/v1/docs/en/core-style). The list can be filtered and sorted. These settings only apply while the detail window is open. The platform does not save them. The context menu in the top right of the list provides the following functions for data grids (details: [Data grid](/v1/docs/en/fre-data-grid-vo)): - Change column visibility - Reset list settings - Export list **NOTE:** The list does not retain column and filter configurations. Consequently, resetting has no operational impact. ### Endpoint detail area To the right of the endpoints list, the detail area shows the data of the selected endpoint. The header of the detail area contains the add and remove buttons mentioned earlier, plus [Form elements](/v1/docs/en/fre-form-elements) for direct access to properties (**Method**, **URI**) and a button **Advanced settings** for indirect access via a dialog. **NOTE:** Depending on the selection, form elements appear or disappear. When they disappear, the entered data is lost. ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-IDRCJWJS.png) The [Combobox](/v1/docs/en/fre-combo-box-vo) element for **Input type** only appears depending on the selected **Method**. For the HTTP methods `GET` and `DELETE`, the platform does not expect an input value. The **Input type** selection then does not appear. The check box **Is collection of** appears as soon as you select an **Input type**. If active, the platform expects an input value as a list of entries of the selected type. For the **Input type** "client object" (`ASObject`), the **Client object structure** button also appears. For details, see [REST API: Client object input type (ASObject)](https://docs.lobster-world.com/docs/en/custom-rest-api-client-object). The **Advanced settings** button opens a dialog with additional settings. For details, see [REST API: Advanced endpoint settings](https://docs.lobster-world.com/docs/en/custom-rest-api-advanced-settings). Via the **Assign** button, you optionally bind association criteria to the endpoint. This controls availability via conditions such as a role or company rule. For details, see [Access control for APIs](/v1/docs/en/api-access-control). The main window of the detail area is split vertically into two areas: - On the left, a tree view shows the data structure of the selected **REST API endpoint** object (`RestApiEndpoint`). A **Declared variables** node also appears. For details, see [REST API: Action block context](https://docs.lobster-world.com/docs/en/custom-rest-api-action-block-context). - To the right, you build an action block for the endpoint's event handling from [Event actions](/v1/docs/en/core-i-action-actor-configuration). For details, see [Configuration of events](/v1/docs/en/core-action-event-handler-configuration-details-window). ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-0ZU3J7T7.png) **NOTE:** At the boundary between the header and main window, the platform shows the endpoint URL with the following schema: `<platform-url>/api/<baseUri>/<uri>` ![](https://cdn.document360.io/4be90b94-ec83-41d8-963e-962df16110d4/Images/Documentation/image-AYZXHEBE.png) - `<platform-url>`: URL of the current client session. - `<baseUri>`: substring from the **base URI** property (`baseUri`) of the **REST API** class. Applies uniformly to all endpoints of the REST API. - `<uri>`: substring from the **URI** property (`uri`) of the **REST API endpoint** class. Specific to each endpoint. **CAUTION****:** Avoid having the string `mcp/` immediately follow the predefined literal `/api/` in the overall URI. Otherwise, conflicts can occur between the definitions for the MCP Server and REST API. #### Method (method) The following HTTP methods are available: | **Method** | **Input value (**`requestBody`**)?** | **Typical REST action** | | --- | --- | --- | | `GET` | No | Read | | `POST` | Yes | Create | | `PUT` | Yes | Update | | `PATCH` | Yes | Update (partial) | | `HEAD` | No | Check existence (without reading details) | | `DELETE` | No | Delete | **NOTE:** The platform does not process any request body sent with `GET` and `DELETE`. According to the HTTP specification (RFC 9110), request bodies do not have a generally defined meaning for these methods. Clients, servers, and proxies do not reliably support them. The specification therefore advises against their use, and the platform follows this recommendation. #### URI (uri) The **URI** property identifies the endpoint via a static string. Optionally, this string can be a path separated by slashes (`/`). Variable parts are specified as URI parameters. For details on URI parameters, separators, dynamic paths, and examples, see [REST API: URI and URI parameters](https://docs.lobster-world.com/docs/en/custom-rest-api-uri-parameter). #### Input type (inputValueType, isCollectionOf, clientStructure) The [Combobox](/v1/docs/en/fre-combo-box-vo) element for **Input type** (`inputValueType`) only appears when the **Method** (`method`) requires an input value. This applies to the methods `POST`, `PUT`, and `PATCH`. The dropdown contains data types of various categories: simple values such as `Boolean`, complex data objects such as `DateRange`, concrete entity types, parent classes, and interfaces. The selection is optional. Without a selection, the platform uses the unspecific data type **Object** (`Object`). - Activate the check box, **Is collection of** (`isCollectionOf`) when the input value should be a list of entries of the selected **Input type**. - For a list of entries with an arbitrary **Input type**, select the type **Object** (`Object`) and activate **Is collection of**. - Alternatively, select the type **List** (`java.util.List`) or **Unique list** (`java.util.Set`) without **Is collection of**. - With `Set`, the entries do not need to be unique. However, the platform removes duplicates in the action block. The order of values may differ from the input value. - When the **Input type** is not a concrete type but, for example, an interface such as **Interface > User** (`IUser`), the platform checks whether a compatible class is present in the Response body. - If the class declared in the response body (`class`) is incompatible with the **Input type**, the platform responds with an HTTP error `404 Error: Not Found`. #### Special input type: Content When you select the **Content** (`Content`) type as the **Input type**, the platform does not automatically deserialize the input value. Instead, it creates a data object of type `Content`. - The `body` field contains the payload from the request. - The `mediaType` field receives the value of the `Content-Type` header. - The `name` field remains empty. This is how you process a binary file or parse custom XML in the action block, for example. See [Parse XML](/v1/docs/en/core-parse-xml-value). #### Special input type: client object (ASObject) When you select the type **Client object** (`ASObject`) as the **Input type**, you define a [Client object structure reference](/v1/docs/en/core-client-structure-reference) in the `clientStructure` field via the **Client object structure**. For details, examples, and the handling of HTML form data, see [REST API: Client object input type (ASObject)](https://docs.lobster-world.com/docs/en/custom-rest-api-client-object). An architecture for web APIs based on HTTP. REST APIs use standard methods such as GET, POST, PUT, and DELETE to access resources. The Lobster Data Platform provides its own REST API and can act as a REST endpoint via an HTTP input agent. **MCP (Model Context Protocol)** is an open standard published by Anthropic at the end of 2024 that enables AI systems to connect to external tools and data sources in a standardized, secure manner. MCP works like a USB port for AI: Instead of rebuilding each connection individually, it ensures a uniform connection option. Similar to how LDP integrates heterogeneous systems via standardized interfaces, MCP consistently connects AI applications with APIs and live data, including access control and data protection. The response determines how a profile sends processed data. In Phase 6, a response determines how and where the output data is sent or stored, e.g., via FTP, HTTP or e-mail. A profile can use several responses in parallel. XML (Extensible Markup Language) is a structured text format for storing and exchanging data. Content is enclosed within freely definable tags such as `<order>`. XML is human-readable, machine-processable, and platform-independent. In the Lobster Data Platform, you can receive, parse, and generate XML data.