Skip to content

Latest commit

 

History

History
70 lines (43 loc) · 1.54 KB

SpanApi.md

File metadata and controls

70 lines (43 loc) · 1.54 KB

\SpanApi

All URIs are relative to https://api.lab5e.com

Method HTTP request Description
GetSystemInfo Get /span/system System information

GetSystemInfo

SystemInfoResponse GetSystemInfo(ctx).Execute()

System information

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "github.com/lab5e/go-spanapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

SystemInfoResponse

Authorization

APIToken

HTTP request headers

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

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