All URIs are relative to http://localhost:8080
Method | HTTP request | Description |
---|---|---|
deleteCredentials | DELETE /emsp/api/2.2.1/credentials | |
getCredentials | GET /emsp/api/2.2.1/credentials | |
postCredentials | POST /emsp/api/2.2.1/credentials | |
putCredentials | PUT /emsp/api/2.2.1/credentials |
deleteCredentials(credentialsDto)
// 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.EmspCredentialsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspCredentialsApi apiInstance = new EmspCredentialsApi(defaultClient);
CredentialsDto credentialsDto = new CredentialsDto(); // CredentialsDto |
try {
apiInstance.deleteCredentials(credentialsDto);
} catch (ApiException e) {
System.err.println("Exception when calling EmspCredentialsApi#deleteCredentials");
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 |
---|---|---|---|
credentialsDto | CredentialsDto |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
ResponseFormatCredentialsDto getCredentials()
// 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.EmspCredentialsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspCredentialsApi apiInstance = new EmspCredentialsApi(defaultClient);
try {
ResponseFormatCredentialsDto result = apiInstance.getCredentials();
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspCredentialsApi#getCredentials");
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 | - |
ResponseFormatCredentialsDto postCredentials(credentialsDto)
// 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.EmspCredentialsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspCredentialsApi apiInstance = new EmspCredentialsApi(defaultClient);
CredentialsDto credentialsDto = new CredentialsDto(); // CredentialsDto |
try {
ResponseFormatCredentialsDto result = apiInstance.postCredentials(credentialsDto);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling EmspCredentialsApi#postCredentials");
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 |
---|---|---|---|
credentialsDto | CredentialsDto |
No authorization required
- Content-Type: application/json
- Accept: /
Status code | Description | Response headers |
---|---|---|
200 | OK | - |
putCredentials(credentialsDto)
// 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.EmspCredentialsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost:8080");
EmspCredentialsApi apiInstance = new EmspCredentialsApi(defaultClient);
CredentialsDto credentialsDto = new CredentialsDto(); // CredentialsDto |
try {
apiInstance.putCredentials(credentialsDto);
} catch (ApiException e) {
System.err.println("Exception when calling EmspCredentialsApi#putCredentials");
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 |
---|---|---|---|
credentialsDto | CredentialsDto |
null (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | OK | - |