Skip to content

Latest commit

 

History

History
262 lines (179 loc) · 7.41 KB

EmspCredentialsApi.md

File metadata and controls

262 lines (179 loc) · 7.41 KB

EmspCredentialsApi

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

deleteCredentials(credentialsDto)

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
credentialsDto CredentialsDto

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -

getCredentials

ResponseFormatCredentialsDto getCredentials()

Example

// 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();
        }
    }
}

Parameters

This endpoint does not need any parameter.

Return type

ResponseFormatCredentialsDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

postCredentials

ResponseFormatCredentialsDto postCredentials(credentialsDto)

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
credentialsDto CredentialsDto

Return type

ResponseFormatCredentialsDto

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: /

HTTP response details

Status code Description Response headers
200 OK -

putCredentials

putCredentials(credentialsDto)

Example

// 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();
        }
    }
}

Parameters

Name Type Description Notes
credentialsDto CredentialsDto

Return type

null (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: Not defined

HTTP response details

Status code Description Response headers
200 OK -