All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
SearchComponent | Get /api/v2/search/component |
ApiSearchResultsDTOV2 SearchComponent(ctx).StageId(stageId).Hash(hash).ComponentIdentifier(componentIdentifier).PackageUrl(packageUrl).Execute()
package main
import (
"context"
"fmt"
"os"
sonatypeiq "github.com/sonatype-nexus-community/nexus-iq-api-client-go"
)
func main() {
stageId := "stageId_example" // string | (optional)
hash := "hash_example" // string | (optional)
componentIdentifier := *sonatypeiq.NewComponentIdentifier() // ComponentIdentifier | (optional)
packageUrl := "packageUrl_example" // string | (optional)
configuration := sonatypeiq.NewConfiguration()
apiClient := sonatypeiq.NewAPIClient(configuration)
resp, r, err := apiClient.SearchAPI.SearchComponent(context.Background()).StageId(stageId).Hash(hash).ComponentIdentifier(componentIdentifier).PackageUrl(packageUrl).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `SearchAPI.SearchComponent``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `SearchComponent`: ApiSearchResultsDTOV2
fmt.Fprintf(os.Stdout, "Response from `SearchAPI.SearchComponent`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiSearchComponentRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
stageId | string | ||
hash | string | ||
componentIdentifier | ComponentIdentifier | ||
packageUrl | string |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]