All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GetHealth | Get /health | |
| GetHealth1 | Get /management/health |
HealthComponent GetHealth(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Interhyp/metadata-service-api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagementAPI.GetHealth(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.GetHealth``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetHealth`: HealthComponent
fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.GetHealth`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetHealthRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]
HealthComponent GetHealth1(ctx).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/Interhyp/metadata-service-api"
)
func main() {
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
resp, r, err := apiClient.ManagementAPI.GetHealth1(context.Background()).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ManagementAPI.GetHealth1``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetHealth1`: HealthComponent
fmt.Fprintf(os.Stdout, "Response from `ManagementAPI.GetHealth1`: %v\n", resp)
}This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetHealth1Request struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: /
[Back to top] [Back to API list] [Back to Model list] [Back to README]