All URIs are relative to http://localhost:8080
Method | HTTP request | Description |
---|---|---|
getVersionDetails | GET /emsp/api/versions/details | |
getVersions | GET /emsp/api/versions |
ResponseFormatVersionDetailsDto getVersionDetails(version)
// Import classes:
import com.extrawest.ocpi.emsp.client.invoker.ApiClient;
import com.extrawest.ocpi.emsp.client.invoker.ApiException;
import com.extrawest.ocpi.emsp.client.invoker.Configuration;
import com.extrawest.ocpi.emsp.client.invoker.models.*;
import com.extrawest.ocpi.emsp.client.api.EmspVersionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspVersionApi apiInstance = new EmspVersionApi(defaultClient);
String version = "version_example"; // String |
try {
ResponseFormatVersionDetailsDto result = apiInstance.getVersionDetails(version);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspVersionApi#getVersionDetails");
System.err.println("Status code: " + e.getCode());
System.err.println("Reason: " + e.getResponseBody());
System.err.println("Response headers: " + e.getResponseHeaders());
e.printStackTrace();
}
}
}
Name | Type | Description | Notes |
---|---|---|---|
version | String |
ResponseFormatVersionDetailsDto
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
ResponseFormatListVersionDto getVersions()
// Import classes:
import com.extrawest.ocpi.emsp.client.invoker.ApiClient;
import com.extrawest.ocpi.emsp.client.invoker.ApiException;
import com.extrawest.ocpi.emsp.client.invoker.Configuration;
import com.extrawest.ocpi.emsp.client.invoker.models.*;
import com.extrawest.ocpi.emsp.client.api.EmspVersionApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspVersionApi apiInstance = new EmspVersionApi(defaultClient);
try {
ResponseFormatListVersionDto result = apiInstance.getVersions();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspVersionApi#getVersions");
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.
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
200 | OK | - |