Spring Boot API (Sync)

Definition :

This is a Spring Boot auto-configuration for the Java API client.

Dependency declaration

To declare a dependency to this client, use the following syntax.

Maven users

Add this dependency to your project’s POM:


Gradle users

Add this dependency to your project’s build file:

compile "com.decisionbrain:spring-boot-starter-optimserver-api-client:4.0.2"

And enable the API client with the @EnableOptimServerClient annotation on your Spring application class:

public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);


The client Javadoc is available in this page .


You can configure the master API URL with the property:

  url: https://master-host/

Keycloak authentication

To enable the Keycloak authentication, you have to configure the following properties (default values below):

    realm: decisionbrain
    clientId: optimserver
    user: optimserver
    password: optimserver

Available beans

You can then inject the beans you need to query the individual API endpoints using the @Autowired annotation. The complete list of available beans is available in this page .