Skip to content

Latest commit

 

History

History
66 lines (41 loc) · 1.3 KB

VersionAPI.md

File metadata and controls

66 lines (41 loc) · 1.3 KB

\VersionAPI

All URIs are relative to https://ossindex.sonatype.org

Method HTTP request Description
Get Get /api/v3/version Get service version information

Get

Get(ctx).Execute()

Get service version information

Example

package main

import (
	"context"
	"fmt"
	"os"
	ossindex "github.com/sonatype-nexus-community/ossindex-api-client-go"
)

func main() {

	configuration := ossindex.NewConfiguration()
	apiClient := ossindex.NewAPIClient(configuration)
	r, err := apiClient.VersionAPI.Get(context.Background()).Execute()
	if err != nil {
		fmt.Fprintf(os.Stderr, "Error when calling `VersionAPI.Get``: %v\n", err)
		fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
	}
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

(empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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