Files
autoglue/sdk/go/docs/HealthAPI.md
2025-11-04 18:16:45 +00:00

1.6 KiB

\HealthAPI

All URIs are relative to http://localhost:8080/api/v1

Method HTTP request Description
HealthCheckOperationId Get /healthz Basic health check

HealthCheckOperationId

HandlersHealthStatus HealthCheckOperationId(ctx).Execute()

Basic health check

Example

package main

import (
	"context"
	"fmt"
	"os"
	openapiclient "github.com/glueops/autoglue-sdk-go"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

HandlersHealthStatus

Authorization

No authorization required

HTTP request headers

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

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