All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| countTeamDarApplications | GET /api/v1/teams/{teamId}/dar/applications/count | TeamDataAccessApplicationController@allCounts |
| countUniqueFieldsDarApplications | GET /api/v1/teams/{teamId}/dar/applications/count/{field} | TeamDataAccessApplicationController@count |
| fetchTeamDarApplication | GET /api/v1/teams/{teamId}/dar/applications/{id} | TeamDataAccessApplicationController@show |
| fetchTeamDarApplications | GET /api/v1/teams/{teamId}/dar/applications | TeamDataAccessApplicationController@index |
CountUniqueFieldsCollections200Response countTeamDarApplications(teamId)
TeamDataAccessApplicationController@allCounts
Get Counts for all status fields in the model
// Import classes:
import uk.ac.hdruk.gatewayapi.ApiClient;
import uk.ac.hdruk.gatewayapi.ApiException;
import uk.ac.hdruk.gatewayapi.Configuration;
import uk.ac.hdruk.gatewayapi.auth.*;
import uk.ac.hdruk.gatewayapi.models.*;
import uk.ac.hdruk.gatewayapi.api.TeamDataAccessApplicationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TeamDataAccessApplicationApi apiInstance = new TeamDataAccessApplicationApi(defaultClient);
Integer teamId = 1; // Integer | Team id
try {
CountUniqueFieldsCollections200Response result = apiInstance.countTeamDarApplications(teamId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TeamDataAccessApplicationApi#countTeamDarApplications");
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 |
|---|---|---|---|
| teamId | Integer | Team id |
CountUniqueFieldsCollections200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
CountUniqueFieldsCollections200Response countUniqueFieldsDarApplications(teamId, field)
TeamDataAccessApplicationController@count
Get Counts for distinct entries of a field in the model
// Import classes:
import uk.ac.hdruk.gatewayapi.ApiClient;
import uk.ac.hdruk.gatewayapi.ApiException;
import uk.ac.hdruk.gatewayapi.Configuration;
import uk.ac.hdruk.gatewayapi.auth.*;
import uk.ac.hdruk.gatewayapi.models.*;
import uk.ac.hdruk.gatewayapi.api.TeamDataAccessApplicationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TeamDataAccessApplicationApi apiInstance = new TeamDataAccessApplicationApi(defaultClient);
Integer teamId = 1; // Integer | Team id
String field = "approval_status"; // String | name of the field to perform a count on
try {
CountUniqueFieldsCollections200Response result = apiInstance.countUniqueFieldsDarApplications(teamId, field);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TeamDataAccessApplicationApi#countUniqueFieldsDarApplications");
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 |
|---|---|---|---|
| teamId | Integer | Team id | |
| field | String | name of the field to perform a count on |
CountUniqueFieldsCollections200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success response | - |
FetchTeamDarApplication200Response fetchTeamDarApplication(teamId, id)
TeamDataAccessApplicationController@show
Return a single DAR application
// Import classes:
import uk.ac.hdruk.gatewayapi.ApiClient;
import uk.ac.hdruk.gatewayapi.ApiException;
import uk.ac.hdruk.gatewayapi.Configuration;
import uk.ac.hdruk.gatewayapi.auth.*;
import uk.ac.hdruk.gatewayapi.models.*;
import uk.ac.hdruk.gatewayapi.api.TeamDataAccessApplicationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TeamDataAccessApplicationApi apiInstance = new TeamDataAccessApplicationApi(defaultClient);
Integer teamId = 1; // Integer | Team id
Integer id = 1; // Integer | DAR application id
try {
FetchTeamDarApplication200Response result = apiInstance.fetchTeamDarApplication(teamId, id);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TeamDataAccessApplicationApi#fetchTeamDarApplication");
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 |
|---|---|---|---|
| teamId | Integer | Team id | |
| id | Integer | DAR application id |
FetchTeamDarApplication200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |
| 404 | Not found response | - |
FetchTeamDarApplications200Response fetchTeamDarApplications(teamId)
TeamDataAccessApplicationController@index
List of dar applications belonging to a team
// Import classes:
import uk.ac.hdruk.gatewayapi.ApiClient;
import uk.ac.hdruk.gatewayapi.ApiException;
import uk.ac.hdruk.gatewayapi.Configuration;
import uk.ac.hdruk.gatewayapi.auth.*;
import uk.ac.hdruk.gatewayapi.models.*;
import uk.ac.hdruk.gatewayapi.api.TeamDataAccessApplicationApi;
public class Example {
public static void main(String[] args) {
ApiClient defaultClient = Configuration.getDefaultApiClient();
defaultClient.setBasePath("http://localhost");
// Configure HTTP bearer authorization: bearerAuth
HttpBearerAuth bearerAuth = (HttpBearerAuth) defaultClient.getAuthentication("bearerAuth");
bearerAuth.setBearerToken("BEARER TOKEN");
TeamDataAccessApplicationApi apiInstance = new TeamDataAccessApplicationApi(defaultClient);
Integer teamId = 1; // Integer | Team id
try {
FetchTeamDarApplications200Response result = apiInstance.fetchTeamDarApplications(teamId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling TeamDataAccessApplicationApi#fetchTeamDarApplications");
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 |
|---|---|---|---|
| teamId | Integer | Team id |
FetchTeamDarApplications200Response
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 200 | Success | - |