REST API
The Ignite 3, clusters provide an OpenAPI specification that can be used to work with Ignite 3 by standard REST methods.
We recommend that you generate client code in your project language by using an OpenAPI code generator. Below is the example of how you can do this for a Java project.
Getting Started
You do not need to explicitly configure REST on the cluster. The connector starts up automatically and listens on port 8080. You can check if it works with curl:
curl 'http://localhost:10300/management/v1/cluster/state'
Java Project Configuration
-
Add an open api generator maven plugin to your project’s pom.xml.
<plugin> <groupId>org.openapitools</groupId> <artifactId>openapi-generator-maven-plugin</artifactId> <version>${maven.openapi.plugin.version}</version> <executions> <execution> <goals> <goal>generate</goal> </goals> <configuration> <inputSpec>https://github.com/apache/ignite-3/tree/main/modules/rest-api/openapi/openapi.yaml</inputSpec> <generatorName>java</generatorName> <apiPackage>org.apache.ignite.rest.client.api</apiPackage> <invokerPackage>org.apache.ignite.rest.client.invoker</invokerPackage> <modelPackage>org.apache.ignite.rest.client.model</modelPackage> <generateModelTests>false</generateModelTests> <generateApiTests>false</generateApiTests> <languageSpecificPrimitives>true</languageSpecificPrimitives> <configOptions> <openApiNullable>false</openApiNullable> <supportStreaming>false</supportStreaming> </configOptions> <library>okhttp-gson</library> </configuration> </execution> </executions> </plugin>
-
Get cluster configuration from your project.
ApiClient client = Configuration.getDefaultApiClient(); // Set base URL client.setBasePath("http://localhost:10300"); // Get cluster configuration. clusterConfigurationApi = new ClusterConfigurationApi(client); String configuration = clusterConfigurationApi.getClusterConfiguration();
© 2025 The Apache Software Foundation.
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.
Apache, Apache Ignite, the Apache feather and the Apache Ignite logo are either registered trademarks or trademarks of The Apache Software Foundation.