Skip to content

Latest commit

 

History

History
79 lines (51 loc) · 1.84 KB

PoolApi.md

File metadata and controls

79 lines (51 loc) · 1.84 KB

\PoolApi

All URIs are relative to http://localhost

Method HTTP request Description
ListPools Get /pool

ListPools

[]Pool ListPools(ctx).Limit(limit).Offset(offset).Count(count).Sort(sort).Execute()

Example

package main

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

func main() {
    limit := int32(56) // int32 |  (optional)
    offset := int32(56) // int32 |  (optional)
    count := true // bool |  (optional)
    sort := "sort_example" // string |  (optional)

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.PoolApi.ListPools(context.Background()).Limit(limit).Offset(offset).Count(count).Sort(sort).Execute()
    if err != nil {
        fmt.Fprintf(os.Stderr, "Error when calling `PoolApi.ListPools``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `ListPools`: []Pool
    fmt.Fprintf(os.Stdout, "Response from `PoolApi.ListPools`: %v\n", resp)
}

Path Parameters

Other Parameters

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

Name Type Description Notes
limit int32
offset int32
count bool
sort string

Return type

[]Pool

Authorization

bearerAuth

HTTP request headers

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

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