- example code.
The Project builds under Oracle JDK17 General-Availability Release
Oracle 11
JPA/Hibernate
Postgres:latest under Docker
Spring-Boot 2.6.2
JSF2 Mojarra
PrimeFaces 11.0.0
- implementation of Basis Primefaces Scheduler.
- Components: Oracle 11, JPA/Hibernate, Docker + Postgres, Spring-Boot 2.6.2, JSF 2.4.0 Mojarra, PrimeFaces
11.0.0, OpenAPI,
Spring Security - URLs: http://localhost:18087/ui/reservation.xhtml
- GITH Info from Rest WS: http://localhost:18087/version
common programm test (DB connect, Boot, JSF connection) is helpful on
refactoring and pom version changing
EMail:javaentwickler@gmail.com
All URIs are relative to http://localhost:18087
Method | HTTP request | Description |
---|---|---|
versionInformation | GET /version/ |
String versionInformation()
// Import classes:
import org.openapitools.client.ApiClient;
import org.openapitools.client.ApiException;
import org.openapitools.client.Configuration;
import org.openapitools.client.models.*;
import org.openapitools.client.api.VersionRestControllerApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:18087");
VersionRestControllerApi apiInstance = new VersionRestControllerApi(defaultClient);
try {
String result = apiInstance.versionInformation();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling VersionRestControllerApi#versionInformation");
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.
String
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | OK | - |