All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
ListPools | Get /pool |
[]Pool ListPools(ctx).Limit(limit).Offset(offset).Count(count).Sort(sort).Execute()
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)
}
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 |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]