All URIs are relative to http://localhost:8080
Method | HTTP request | Description |
---|---|---|
getSession | GET /emsp/api/2.2.1/sessions | |
patchSession | PATCH /emsp/api/2.2.1/sessions | |
putSession | PUT /emsp/api/2.2.1/sessions |
ResponseFormatSessionDto getSession(countryCode, partyId, sessionId)
// 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.EmspSessionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspSessionsApi apiInstance = new EmspSessionsApi(defaultClient);
String countryCode = "countryCode_example"; // String |
String partyId = "partyId_example"; // String |
String sessionId = "sessionId_example"; // String |
try {
ResponseFormatSessionDto result = apiInstance.getSession(countryCode, partyId, sessionId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspSessionsApi#getSession");
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 |
---|---|---|---|
countryCode | String | ||
partyId | String | ||
sessionId | String |
No authorization required
- Content-Type: Not defined
- Accept: /
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
patchSession(countryCode, partyId, sessionId, sessionDto)
// 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.EmspSessionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspSessionsApi apiInstance = new EmspSessionsApi(defaultClient);
String countryCode = "countryCode_example"; // String |
String partyId = "partyId_example"; // String |
String sessionId = "sessionId_example"; // String |
SessionDto sessionDto = new SessionDto(); // SessionDto |
try {
apiInstance.patchSession(countryCode, partyId, sessionId, sessionDto);
} catch (ApiException e) {
System.err.println("Exception when calling EmspSessionsApi#patchSession");
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 |
---|---|---|---|
countryCode | String | ||
partyId | String | ||
sessionId | String | ||
sessionDto | SessionDto |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
ResponseFormatSessionDto putSession(countryCode, partyId, sessionId, sessionDto)
// 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.EmspSessionsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspSessionsApi apiInstance = new EmspSessionsApi(defaultClient);
String countryCode = "countryCode_example"; // String |
String partyId = "partyId_example"; // String |
String sessionId = "sessionId_example"; // String |
SessionDto sessionDto = new SessionDto(); // SessionDto |
try {
ResponseFormatSessionDto result = apiInstance.putSession(countryCode, partyId, sessionId, sessionDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspSessionsApi#putSession");
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 |
---|---|---|---|
countryCode | String | ||
partyId | String | ||
sessionId | String | ||
sessionDto | SessionDto |
No authorization required
- Content-Type: application/json
- Accept: /
Status code | Description | Response headers |
---|---|---|
200 | OK | - |