All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| CreateCollectionsIntegrations | Post /api/v1/integrations/collections | IntegrationCollectionController@store |
| DeleteCollectionsIntegrations | Delete /api/v1/integrations/collections/{id} | Delete a collection |
| EditCollectionsIntegrations | Patch /api/v1/integrations/collections/{id} | Edit a collection |
| FetchAllCollectionsIntegrations | Get /api/v1/integrations/collections | IntegrationCollectionController@index |
| FetchCollectionsIntegrations | Get /api/v1/integrations/collections/{id} | IntegrationCollectionController@show |
| UpdateCollectionsIntegrations | Put /api/v1/integrations/collections/{id} | Update a collection |
CreateDarIntegration201Response CreateCollectionsIntegrations(ctx).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
IntegrationCollectionController@store
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
createCollectionsIntegrationsRequest := *openapiclient.NewCreateCollectionsIntegrationsRequest() // CreateCollectionsIntegrationsRequest | Pass user credentials
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.CreateCollectionsIntegrations(context.Background()).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.CreateCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `CreateCollectionsIntegrations`: CreateDarIntegration201Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.CreateCollectionsIntegrations`: %v\n", resp)
}Other parameters are passed through a pointer to a apiCreateCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| createCollectionsIntegrationsRequest | CreateCollectionsIntegrationsRequest | Pass user credentials |
CreateDarIntegration201Response
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteApplications200Response DeleteCollectionsIntegrations(ctx, id).Execute()
Delete a collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
id := int32(1) // int32 | collection id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.DeleteCollectionsIntegrations(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.DeleteCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `DeleteCollectionsIntegrations`: DeleteApplications200Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.DeleteCollectionsIntegrations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | collection id |
Other parameters are passed through a pointer to a apiDeleteCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchCollections200Response EditCollectionsIntegrations(ctx, id).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
Edit a collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
id := int32(1) // int32 | collection id
createCollectionsIntegrationsRequest := *openapiclient.NewCreateCollectionsIntegrationsRequest() // CreateCollectionsIntegrationsRequest | Pass user credentials
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.EditCollectionsIntegrations(context.Background(), id).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.EditCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `EditCollectionsIntegrations`: FetchCollections200Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.EditCollectionsIntegrations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | collection id |
Other parameters are passed through a pointer to a apiEditCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createCollectionsIntegrationsRequest | CreateCollectionsIntegrationsRequest | Pass user credentials |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchAllCollections200Response FetchAllCollectionsIntegrations(ctx).Name(name).PerPage(perPage).Execute()
IntegrationCollectionController@index
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
name := "name_example" // string | Filter collections by name (optional)
perPage := int32(1) // int32 | per page (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.FetchAllCollectionsIntegrations(context.Background()).Name(name).PerPage(perPage).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.FetchAllCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchAllCollectionsIntegrations`: FetchAllCollections200Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.FetchAllCollectionsIntegrations`: %v\n", resp)
}Other parameters are passed through a pointer to a apiFetchAllCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| name | string | Filter collections by name | |
| perPage | int32 | per page |
FetchAllCollections200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchCollections200Response FetchCollectionsIntegrations(ctx, id).Execute()
IntegrationCollectionController@show
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
id := int32(1) // int32 | collection id
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.FetchCollectionsIntegrations(context.Background(), id).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.FetchCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchCollectionsIntegrations`: FetchCollections200Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.FetchCollectionsIntegrations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | collection id |
Other parameters are passed through a pointer to a apiFetchCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
FetchCollections200Response UpdateCollectionsIntegrations(ctx, id).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
Update a collection
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)
func main() {
id := int32(1) // int32 | collection id
createCollectionsIntegrationsRequest := *openapiclient.NewCreateCollectionsIntegrationsRequest() // CreateCollectionsIntegrationsRequest | Pass user credentials
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.IntegrationCollectionsAPI.UpdateCollectionsIntegrations(context.Background(), id).CreateCollectionsIntegrationsRequest(createCollectionsIntegrationsRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `IntegrationCollectionsAPI.UpdateCollectionsIntegrations``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateCollectionsIntegrations`: FetchCollections200Response
fmt.Fprintf(os.Stdout, "Response from `IntegrationCollectionsAPI.UpdateCollectionsIntegrations`: %v\n", resp)
}| Name | Type | Description | Notes |
|---|---|---|---|
| ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
| id | int32 | collection id |
Other parameters are passed through a pointer to a apiUpdateCollectionsIntegrationsRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|
createCollectionsIntegrationsRequest | CreateCollectionsIntegrationsRequest | Pass user credentials |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]