# DataProviderDiscoveryApi

All URIs are relative to https://api.mydatamyconsent.com

Method HTTP request Description
getDataProviderById GET /v1/data-providers/{providerId} Get a Data Provider details by provider id.
getDataProviders GET /v1/data-providers Discover all data providers in My Data My Consent by country and filters.

# getDataProviderById

DataProvider getDataProviderById(providerId)

Get a Data Provider details by provider id.

# Example

// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProviderDiscoveryApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.mydatamyconsent.com");

    DataProviderDiscoveryApi apiInstance = new DataProviderDiscoveryApi(defaultClient);
    String providerId = "providerId_example"; // String | Data provider id.
    try {
      DataProvider result = apiInstance.getDataProviderById(providerId);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DataProviderDiscoveryApi#getDataProviderById");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

# Parameters

Name Type Description Notes
providerId String Data provider id.

# Return type

DataProvider

# Authorization

No authorization required

# HTTP request headers

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

# HTTP response details

Status code Description Response headers
200 Success -
500 Server Error -
400 Bad Request -
404 Not Found -

# getDataProviders

DataProviderPaginatedList getDataProviders(accountType, documentType, organizationCategory, pageNo, pageSize, countryIso2Code)

Discover all data providers in My Data My Consent by country and filters.

# Example

// Import classes:
import com.mydatamyconsent.ApiClient;
import com.mydatamyconsent.ApiException;
import com.mydatamyconsent.Configuration;
import com.mydatamyconsent.models.*;
import com.mydatamyconsent.api.DataProviderDiscoveryApi;

public class Example {
  public static void main(String[] args) {
    ApiClient defaultClient = Configuration.getDefaultApiClient();
    defaultClient.setBasePath("https://api.mydatamyconsent.com");

    DataProviderDiscoveryApi apiInstance = new DataProviderDiscoveryApi(defaultClient);
    String accountType = "accountType_example"; // String | Account type.
    String documentType = "documentType_example"; // String | Document type.
    String organizationCategory = "organizationCategory_example"; // String | Organization category.
    Integer pageNo = 1; // Integer | Page number.
    Integer pageSize = 25; // Integer | Number of items to return.
    String countryIso2Code = "IN"; // String | ISO2 Country code.
    try {
      DataProviderPaginatedList result = apiInstance.getDataProviders(accountType, documentType, organizationCategory, pageNo, pageSize, countryIso2Code);
      System.out.println(result);
    } catch (ApiException e) {
      System.err.println("Exception when calling DataProviderDiscoveryApi#getDataProviders");
      System.err.println("Status code: " + e.getCode());
      System.err.println("Reason: " + e.getResponseBody());
      System.err.println("Response headers: " + e.getResponseHeaders());
      e.printStackTrace();
    }
  }
}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31

# Parameters

Name Type Description Notes
accountType String Account type. [optional]
documentType String Document type. [optional]
organizationCategory String Organization category. [optional]
pageNo Integer Page number. [optional] [default to 1]
pageSize Integer Number of items to return. [optional] [default to 25]
countryIso2Code String ISO2 Country code. [optional] [default to IN]

# Return type

DataProviderPaginatedList

# Authorization

No authorization required

# HTTP request headers

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

# HTTP response details

Status code Description Response headers
200 Success -
500 Server Error -
400 Bad Request -
Last Updated: 6/19/2022, 7:27:56 PM