Skip to content

Latest commit

 

History

History
1369 lines (875 loc) · 38.1 KB

File metadata and controls

1369 lines (875 loc) · 38.1 KB

\ToolsAPI

All URIs are relative to http://localhost

Method HTTP request Description
CountUniqueFieldsTools Get /api/v1/tools/count/{field} ToolController@count
CreateTools Post /api/v1/tools ToolController@store
CreateToolsByTeamV2 Post /api/v2/teams/{teamId}/tools ToolController@store
CreateToolsIntegrations Post /api/v1/integrations/tools IntegrationToolController@store
DeleteTools Delete /api/v1/tools/{id} ToolController@destroy
DeleteToolsByTeamidV2 Delete /api/v2/teams/{teamId}/tools/{id} TeamToolController@destroy
DeleteToolsIntegrations Delete /api/v1/integrations/tools/{id} IntegrationToolController@destroy
EditTools Patch /api/v1/tools/{id} ToolController@edit
EditToolsByTeamidV2 Patch /api/v2/teams/{teamId}/tools/{id} TeamToolController@edit
EditToolsIntegrations Patch /api/v1/integrations/tools/{id} IntegrationToolController@edit
FetchAllTools Get /api/v1/tools Fetch all tools
FetchAllToolsIntegrations Get /api/v1/integrations/tools IntegrationToolController@index
FetchAllToolsV2 Get /api/v2/tools ToolController@indexActive
FetchTools Get /api/v1/tools/{id} ToolController@show
FetchToolsIntegrations Get /api/v1/integrations/tools/{id} IntegrationToolController@show
FetchToolsV2 Get /api/v2/tools/{id} ToolController@showActive
UpdateTools Put /api/v1/tools/{id} ToolController@update
UpdateToolsByTeamidV2 Put /api/v2/teams/{teamId}/tools/{id} TeamToolController@update
UpdateToolsIntegrations Put /api/v1/integrations/tools/{id} IntegrationToolController@update

CountUniqueFieldsTools

CountUniqueFieldsCollections200Response CountUniqueFieldsTools(ctx, field).TeamId(teamId).Execute()

ToolController@count

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	field := "status" // string | name of the field to perform a count on
	teamId := int32(1) // int32 | team id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.CountUniqueFieldsTools(context.Background(), field).TeamId(teamId).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.CountUniqueFieldsTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CountUniqueFieldsTools`: CountUniqueFieldsCollections200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.CountUniqueFieldsTools`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
field string name of the field to perform a count on

Other Parameters

Other parameters are passed through a pointer to a apiCountUniqueFieldsToolsRequest struct via the builder pattern

Name Type Description Notes

teamId | int32 | team id |

Return type

CountUniqueFieldsCollections200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateTools

CreateDarIntegration201Response CreateTools(ctx).CreateToolsRequest(createToolsRequest).Execute()

ToolController@store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	createToolsRequest := *openapiclient.NewCreateToolsRequest() // CreateToolsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.CreateTools(context.Background()).CreateToolsRequest(createToolsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.CreateTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateTools`: CreateDarIntegration201Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.CreateTools`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateToolsRequest struct via the builder pattern

Name Type Description Notes
createToolsRequest CreateToolsRequest Pass user credentials

Return type

CreateDarIntegration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateToolsByTeamV2

CreateDarIntegration201Response CreateToolsByTeamV2(ctx, teamId).CreateToolsRequest(createToolsRequest).Execute()

ToolController@store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	teamId := int32(1) // int32 | team id
	createToolsRequest := *openapiclient.NewCreateToolsRequest() // CreateToolsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.CreateToolsByTeamV2(context.Background(), teamId).CreateToolsRequest(createToolsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.CreateToolsByTeamV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateToolsByTeamV2`: CreateDarIntegration201Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.CreateToolsByTeamV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
teamId int32 team id

Other Parameters

Other parameters are passed through a pointer to a apiCreateToolsByTeamV2Request struct via the builder pattern

Name Type Description Notes

createToolsRequest | CreateToolsRequest | Pass user credentials |

Return type

CreateDarIntegration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

CreateToolsIntegrations

CreateDarIntegration201Response CreateToolsIntegrations(ctx).CreateToolsIntegrationsRequest(createToolsIntegrationsRequest).Execute()

IntegrationToolController@store

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	createToolsIntegrationsRequest := *openapiclient.NewCreateToolsIntegrationsRequest() // CreateToolsIntegrationsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.CreateToolsIntegrations(context.Background()).CreateToolsIntegrationsRequest(createToolsIntegrationsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.CreateToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `CreateToolsIntegrations`: CreateDarIntegration201Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.CreateToolsIntegrations`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiCreateToolsIntegrationsRequest struct via the builder pattern

Name Type Description Notes
createToolsIntegrationsRequest CreateToolsIntegrationsRequest Pass user credentials

Return type

CreateDarIntegration201Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteTools

DeleteFederation200Response DeleteTools(ctx, id).Execute()

ToolController@destroy

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.DeleteTools(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.DeleteTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteTools`: DeleteFederation200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.DeleteTools`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiDeleteToolsRequest struct via the builder pattern

Name Type Description Notes

Return type

DeleteFederation200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteToolsByTeamidV2

DeleteFederation200Response DeleteToolsByTeamidV2(ctx, teamId, id).Execute()

TeamToolController@destroy

Example

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 | tool id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.DeleteToolsByTeamidV2(context.Background(), teamId, id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.DeleteToolsByTeamidV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteToolsByTeamidV2`: DeleteFederation200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.DeleteToolsByTeamidV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
teamId int32 team id
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiDeleteToolsByTeamidV2Request struct via the builder pattern

Name Type Description Notes

Return type

DeleteFederation200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteToolsIntegrations

DeleteFederation200Response DeleteToolsIntegrations(ctx, id).Execute()

IntegrationToolController@destroy

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.DeleteToolsIntegrations(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.DeleteToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `DeleteToolsIntegrations`: DeleteFederation200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.DeleteToolsIntegrations`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiDeleteToolsIntegrationsRequest struct via the builder pattern

Name Type Description Notes

Return type

DeleteFederation200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditTools

FetchToolsIntegrations200Response EditTools(ctx, id).UpdateToolsRequest(updateToolsRequest).Unarchive(unarchive).Execute()

ToolController@edit

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id
	updateToolsRequest := *openapiclient.NewUpdateToolsRequest() // UpdateToolsRequest | Pass user credentials
	unarchive := "unarchive_example" // string | Unarchive a tool (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.EditTools(context.Background(), id).UpdateToolsRequest(updateToolsRequest).Unarchive(unarchive).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.EditTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditTools`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.EditTools`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiEditToolsRequest struct via the builder pattern

Name Type Description Notes

updateToolsRequest | UpdateToolsRequest | Pass user credentials | unarchive | string | Unarchive a tool |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditToolsByTeamidV2

FetchToolsIntegrations200Response EditToolsByTeamidV2(ctx, teamId, id).UpdateToolsRequest(updateToolsRequest).Execute()

TeamToolController@edit

Example

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 | tool id
	updateToolsRequest := *openapiclient.NewUpdateToolsRequest() // UpdateToolsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.EditToolsByTeamidV2(context.Background(), teamId, id).UpdateToolsRequest(updateToolsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.EditToolsByTeamidV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditToolsByTeamidV2`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.EditToolsByTeamidV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
teamId int32 team id
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiEditToolsByTeamidV2Request struct via the builder pattern

Name Type Description Notes

updateToolsRequest | UpdateToolsRequest | Pass user credentials |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

EditToolsIntegrations

FetchToolsIntegrations200Response EditToolsIntegrations(ctx, id).UpdateToolsIntegrationsRequest(updateToolsIntegrationsRequest).Execute()

IntegrationToolController@edit

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id
	updateToolsIntegrationsRequest := *openapiclient.NewUpdateToolsIntegrationsRequest() // UpdateToolsIntegrationsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.EditToolsIntegrations(context.Background(), id).UpdateToolsIntegrationsRequest(updateToolsIntegrationsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.EditToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `EditToolsIntegrations`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.EditToolsIntegrations`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiEditToolsIntegrationsRequest struct via the builder pattern

Name Type Description Notes

updateToolsIntegrationsRequest | UpdateToolsIntegrationsRequest | Pass user credentials |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchAllTools

FetchAllTools200Response FetchAllTools(ctx).TeamId(teamId).UserId(userId).Title(title).Sort(sort).Execute()

Fetch all tools

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	teamId := int32(56) // int32 | Filter tools by team ID (optional)
	userId := int32(56) // int32 | Filter tools by user ID (optional)
	title := "title_example" // string | Filter tools by title (optional)
	sort := "name:asc" // string | Sort tools by a specific field and direction, e.g., 'name:asc' or 'created_at:desc' (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchAllTools(context.Background()).TeamId(teamId).UserId(userId).Title(title).Sort(sort).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchAllTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchAllTools`: FetchAllTools200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchAllTools`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiFetchAllToolsRequest struct via the builder pattern

Name Type Description Notes
teamId int32 Filter tools by team ID
userId int32 Filter tools by user ID
title string Filter tools by title
sort string Sort tools by a specific field and direction, e.g., 'name:asc' or 'created_at:desc'

Return type

FetchAllTools200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchAllToolsIntegrations

FetchAllToolsIntegrations200Response FetchAllToolsIntegrations(ctx).Execute()

IntegrationToolController@index

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchAllToolsIntegrations(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchAllToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchAllToolsIntegrations`: FetchAllToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchAllToolsIntegrations`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

Other parameters are passed through a pointer to a apiFetchAllToolsIntegrationsRequest struct via the builder pattern

Return type

FetchAllToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchAllToolsV2

FetchAllTools200Response FetchAllToolsV2(ctx).Name(name).Sort(sort).Execute()

ToolController@indexActive

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	name := "name_example" // string | Filter tools by name (optional)
	sort := "name:asc" // string | Sort tools by a specific field and direction, e.g., 'name:asc' or 'created_at:desc' (optional)

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchAllToolsV2(context.Background()).Name(name).Sort(sort).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchAllToolsV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchAllToolsV2`: FetchAllTools200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchAllToolsV2`: %v\n", resp)
}

Path Parameters

Other Parameters

Other parameters are passed through a pointer to a apiFetchAllToolsV2Request struct via the builder pattern

Name Type Description Notes
name string Filter tools by name
sort string Sort tools by a specific field and direction, e.g., 'name:asc' or 'created_at:desc'

Return type

FetchAllTools200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchTools

FetchToolsIntegrations200Response FetchTools(ctx, id).ViewType(viewType).Execute()

ToolController@show

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id
	viewType := "full" // string | Query flag to show full tool data or a trimmed version (defaults to full). (optional) (default to "full")

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchTools(context.Background(), id).ViewType(viewType).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchTools`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchTools`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiFetchToolsRequest struct via the builder pattern

Name Type Description Notes

viewType | string | Query flag to show full tool data or a trimmed version (defaults to full). | [default to "full"]

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchToolsIntegrations

FetchToolsIntegrations200Response FetchToolsIntegrations(ctx, id).Execute()

IntegrationToolController@show

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchToolsIntegrations(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchToolsIntegrations`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchToolsIntegrations`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiFetchToolsIntegrationsRequest struct via the builder pattern

Name Type Description Notes

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

FetchToolsV2

FetchToolsIntegrations200Response FetchToolsV2(ctx, id).Execute()

ToolController@showActive

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.FetchToolsV2(context.Background(), id).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.FetchToolsV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `FetchToolsV2`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.FetchToolsV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiFetchToolsV2Request struct via the builder pattern

Name Type Description Notes

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

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

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateTools

FetchToolsIntegrations200Response UpdateTools(ctx, id).UpdateToolsRequest(updateToolsRequest).Execute()

ToolController@update

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id
	updateToolsRequest := *openapiclient.NewUpdateToolsRequest() // UpdateToolsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.UpdateTools(context.Background(), id).UpdateToolsRequest(updateToolsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.UpdateTools``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateTools`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.UpdateTools`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiUpdateToolsRequest struct via the builder pattern

Name Type Description Notes

updateToolsRequest | UpdateToolsRequest | Pass user credentials |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateToolsByTeamidV2

FetchToolsIntegrations200Response UpdateToolsByTeamidV2(ctx, teamId, id).UpdateToolsRequest(updateToolsRequest).Execute()

TeamToolController@update

Example

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 | tool id
	updateToolsRequest := *openapiclient.NewUpdateToolsRequest() // UpdateToolsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.UpdateToolsByTeamidV2(context.Background(), teamId, id).UpdateToolsRequest(updateToolsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.UpdateToolsByTeamidV2``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateToolsByTeamidV2`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.UpdateToolsByTeamidV2`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
teamId int32 team id
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiUpdateToolsByTeamidV2Request struct via the builder pattern

Name Type Description Notes

updateToolsRequest | UpdateToolsRequest | Pass user credentials |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateToolsIntegrations

FetchToolsIntegrations200Response UpdateToolsIntegrations(ctx, id).UpdateToolsIntegrationsRequest(updateToolsIntegrationsRequest).Execute()

IntegrationToolController@update

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/HDRUK/gateway-api-go-sdk"
)

func main() {
	id := int32(1) // int32 | tool id
	updateToolsIntegrationsRequest := *openapiclient.NewUpdateToolsIntegrationsRequest() // UpdateToolsIntegrationsRequest | Pass user credentials

	configuration := openapiclient.NewConfiguration()
	apiClient := openapiclient.NewAPIClient(configuration)
	resp, r, err := apiClient.ToolsAPI.UpdateToolsIntegrations(context.Background(), id).UpdateToolsIntegrationsRequest(updateToolsIntegrationsRequest).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `ToolsAPI.UpdateToolsIntegrations``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
	// response from `UpdateToolsIntegrations`: FetchToolsIntegrations200Response
	fmt.Fprintf(os.Stdout, "Response from `ToolsAPI.UpdateToolsIntegrations`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
id int32 tool id

Other Parameters

Other parameters are passed through a pointer to a apiUpdateToolsIntegrationsRequest struct via the builder pattern

Name Type Description Notes

updateToolsIntegrationsRequest | UpdateToolsIntegrationsRequest | Pass user credentials |

Return type

FetchToolsIntegrations200Response

Authorization

bearerAuth

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

[Back to top] [Back to API list] [Back to Model list] [Back to README]