All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
configurationGet | GET /api/v1/Configuration | returns information about server configuration |
ServerConfigurationVM configurationGet()
returns information about server configuration
// Import classes:
import cloud.fastreport.ApiClient;
import cloud.fastreport.ApiException;
import cloud.fastreport.Configuration;
import cloud.fastreport.auth.*;
import cloud.fastreport.models.*;
import cloud.fastreport.client.ConfigurationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP basic authorization: ApiKey
HttpBasicAuth ApiKey = (HttpBasicAuth) defaultClient.getAuthentication("ApiKey");
ApiKey.setUsername("YOUR USERNAME");
ApiKey.setPassword("YOUR PASSWORD");
// Configure HTTP bearer authorization: JWT
HttpBearerAuth JWT = (HttpBearerAuth) defaultClient.getAuthentication("JWT");
JWT.setBearerToken("BEARER TOKEN");
ConfigurationApi apiInstance = new ConfigurationApi(defaultClient);
try {
ServerConfigurationVM result = apiInstance.configurationGet();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling ConfigurationApi#configurationGet");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
This endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | - |