All URIs are relative to https://api.mydatamyconsent.com
Method | HTTP request | Description |
---|---|---|
v1DataAgreementsGet | GET /v1/data-agreements | Get paginated data processing agreements. |
v1DataAgreementsIdDelete | DELETE /v1/data-agreements/{id} | Delete a data processing agreement this will not delete a published or a agreement in use with consents. |
v1DataAgreementsIdGet | GET /v1/data-agreements/{id} | Get data processing agreement by id. |
v1DataAgreementsIdTerminatePut | PUT /v1/data-agreements/{id}/terminate | Terminate a data processing agreement by id. |
PaginatedListOfDataProcessingAgreements v1DataAgreementsGet(pageNo, pageSize)
Get paginated data processing agreements.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProcessingAgreementsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
DataProcessingAgreementsApi apiInstance = new DataProcessingAgreementsApi(defaultClient);
Integer pageNo = 56; // Integer |
Integer pageSize = 56; // Integer |
try {
PaginatedListOfDataProcessingAgreements result = apiInstance.v1DataAgreementsGet(pageNo, pageSize);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataProcessingAgreementsApi#v1DataAgreementsGet");
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 |
---|---|---|---|
pageNo | Integer | [optional] | |
pageSize | Integer | [optional] |
PaginatedListOfDataProcessingAgreements
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
Boolean v1DataAgreementsIdDelete(id)
Delete a data processing agreement this will not delete a published or a agreement in use with consents.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProcessingAgreementsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
DataProcessingAgreementsApi apiInstance = new DataProcessingAgreementsApi(defaultClient);
String id = "id_example"; // String |
try {
Boolean result = apiInstance.v1DataAgreementsIdDelete(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataProcessingAgreementsApi#v1DataAgreementsIdDelete");
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 |
---|---|---|---|
id | String |
Boolean
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
DataProcessingAgreement v1DataAgreementsIdGet(id)
Get data processing agreement by id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProcessingAgreementsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
DataProcessingAgreementsApi apiInstance = new DataProcessingAgreementsApi(defaultClient);
String id = "id_example"; // String |
try {
DataProcessingAgreement result = apiInstance.v1DataAgreementsIdGet(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataProcessingAgreementsApi#v1DataAgreementsIdGet");
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 |
---|---|---|---|
id | String |
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |
Boolean v1DataAgreementsIdTerminatePut(id)
Terminate a data processing agreement by id.
// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.auth.*;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProcessingAgreementsApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("https://api.mydatamyconsent.com");
// Configure OAuth2 access token for authorization: OAuth2ClientCredentials
OAuth OAuth2ClientCredentials = (OAuth) defaultClient.getAuthentication("OAuth2ClientCredentials");
OAuth2ClientCredentials.setAccessToken("YOUR ACCESS TOKEN");
DataProcessingAgreementsApi apiInstance = new DataProcessingAgreementsApi(defaultClient);
String id = "id_example"; // String |
try {
Boolean result = apiInstance.v1DataAgreementsIdTerminatePut(id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DataProcessingAgreementsApi#v1DataAgreementsIdTerminatePut");
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 |
---|---|---|---|
id | String |
Boolean
- Content-Type: Not defined
- Accept: application/json; charset=utf-8
Status code | Description | Response headers |
---|---|---|
200 | - | |
400 | - | |
401 | - | |
404 | - | |
500 | - |