Reference·Java SDK · nl.bimbase.bimworks.sdkJava

InfoApi

Java SDK: the Info operations, 1 method, each with its parameters, result and a complete example.

Java SDK · nl.bimbase.bimworks.sdk.api · class · 1 method

General information about the instance

Construct it with the client of the connect step: new InfoApi(client). Each method is one operation of the API part, where it runs on its page.

MethodOperationDescription
getApplicationVersionGetApplicationVersionThe BIM.works version of the instance

getApplicationVersion#

Java#
public GetApplicationVersion200Response getApplicationVersion() throws ApiException

The BIM.works version of the instance. The version of BIM.works the instance runs, to check compatibility. No credential needed.

OperationGetApplicationVersion · POST /openapi/info/GetApplicationVersion
Scopenone: callable before logging in

Parameters#

None: the operation takes no request.

Returns#

GetApplicationVersion200Response — The version

Example#

Java#
import nl.bimbase.bimworks.sdk.api.InfoApi;
import nl.bimbase.bimworks.sdk.client.ApiClient;

public class Example {
    public static void main(String[] args) throws Exception {
        // 1. Connect to BIM.works (GetApplicationVersion needs no login)
        ApiClient client = new ApiClient();
        client.updateBaseUri("https://bim.works/openapi");

        // 2. The request
        // (GetApplicationVersion takes no request)

        // 3. The call
        var result = new InfoApi(client).getApplicationVersion();

        // 4. The result
        System.out.println(client.getObjectMapper().writerWithDefaultPrettyPrinter().writeValueAsString(result));
    }
}