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(ctx, teamId).Execute()
TeamDataAccessApplicationController@allCounts
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
teamId := int32(1) // int32 | Team id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TeamDataAccessApplicationAPI.CountTeamDarApplications(context.Background(), teamId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TeamDataAccessApplicationAPI.CountTeamDarApplications``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CountTeamDarApplications`: CountUniqueFieldsCollections200Response
fmt.Fprintf(os.Stdout, "Response from `TeamDataAccessApplicationAPI.CountTeamDarApplications`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| teamId | int32 | Team id |
Other parameters are passed through a pointer to a apiCountTeamDarApplicationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
CountUniqueFieldsCollections200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
CountUniqueFieldsCollections200Response CountUniqueFieldsDarApplications(ctx, teamId, field).Execute()
TeamDataAccessApplicationController@count
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
teamId := int32(1) // int32 | Team id
field := "approval_status" // string | name of the field to perform a count on
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TeamDataAccessApplicationAPI.CountUniqueFieldsDarApplications(context.Background(), teamId, field).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TeamDataAccessApplicationAPI.CountUniqueFieldsDarApplications``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CountUniqueFieldsDarApplications`: CountUniqueFieldsCollections200Response
fmt.Fprintf(os.Stdout, "Response from `TeamDataAccessApplicationAPI.CountUniqueFieldsDarApplications`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| teamId | int32 | Team id | |
| field | string | name of the field to perform a count on |
Other parameters are passed through a pointer to a apiCountUniqueFieldsDarApplicationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
CountUniqueFieldsCollections200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchTeamDarApplication200Response FetchTeamDarApplication(ctx, teamId, id).Execute()
TeamDataAccessApplicationController@show
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
teamId := int32(1) // int32 | Team id
id := int32(1) // int32 | DAR application id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TeamDataAccessApplicationAPI.FetchTeamDarApplication(context.Background(), teamId, id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TeamDataAccessApplicationAPI.FetchTeamDarApplication``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchTeamDarApplication`: FetchTeamDarApplication200Response
fmt.Fprintf(os.Stdout, "Response from `TeamDataAccessApplicationAPI.FetchTeamDarApplication`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| teamId | int32 | Team id | |
| id | int32 | DAR application id |
Other parameters are passed through a pointer to a apiFetchTeamDarApplicationRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
FetchTeamDarApplication200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchTeamDarApplications200Response FetchTeamDarApplications(ctx, teamId).Execute()
TeamDataAccessApplicationController@index
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
teamId := int32(1) // int32 | Team id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.TeamDataAccessApplicationAPI.FetchTeamDarApplications(context.Background(), teamId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `TeamDataAccessApplicationAPI.FetchTeamDarApplications``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchTeamDarApplications`: FetchTeamDarApplications200Response
fmt.Fprintf(os.Stdout, "Response from `TeamDataAccessApplicationAPI.FetchTeamDarApplications`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| teamId | int32 | Team id |
Other parameters are passed through a pointer to a apiFetchTeamDarApplicationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
FetchTeamDarApplications200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]