Skip to content

Latest commit

 

History

History
89 lines (59 loc) · 2.28 KB

ProviderApi.md

File metadata and controls

89 lines (59 loc) · 2.28 KB

\ProviderApi

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

Method HTTP request Description
GetProviders Get /providers List providers

GetProviders

ProviderCollection GetProviders(ctx).Execute()

List providers

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

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

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

ProviderCollection

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]