Skip to content

Latest commit

 

History

History
75 lines (46 loc) · 1.95 KB

File metadata and controls

75 lines (46 loc) · 1.95 KB

\DatasetsTestAPI

All URIs are relative to http://localhost

Method HTTP request Description
DatasetsTest Post /api/v1/datasets/test DatasetController@datasetTest

DatasetsTest

CreateDarIntegration201Response DatasetsTest(ctx).DatasetsTestRequest(datasetsTestRequest).Execute()

DatasetController@datasetTest

Example

package main

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

func main() {
	datasetsTestRequest := *openapiclient.NewDatasetsTestRequest() // DatasetsTestRequest | Pass datasets payload

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

Path Parameters

Other Parameters

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

Name Type Description Notes
datasetsTestRequest DatasetsTestRequest Pass datasets payload

Return type

CreateDarIntegration201Response

Authorization

No authorization required

HTTP request headers

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

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