Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.56 KB

OperationalApi.md

File metadata and controls

70 lines (43 loc) · 1.56 KB

\OperationalApi

All URIs are relative to http://localhost

Method HTTP request Description
GetHealth Get /health Get instance operational status

GetHealth

HealthCheckSchema GetHealth(ctx).Execute()

Get instance operational status

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/Unleash/unleash-server-api-go/client"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

HealthCheckSchema

Authorization

apiKey

HTTP request headers

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

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