All URIs are relative to https://api.gridly.com
Method | HTTP request | Description |
---|---|---|
Create | Post /v1/views | create |
Export | Get /v1/views/{viewId}/export | export |
Get | Get /v1/views/{viewId} | get |
GetStatistic | Get /v1/views/{viewId}/statistic | getStatistic |
ImportView | Post /v1/views/{viewId}/import | importView |
List | Get /v1/views | list |
Merge | Post /v1/views/{viewId}/merge | merge |
View Create(ctx).CreateView(createView).Execute()
create
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
createView := *gridly.NewCreateView() // CreateView |
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.Create(context.Background()).CreateView(createView).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: View
fmt.Fprintf(os.Stdout, "Response from `ViewApi.Create`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
createView | CreateView |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File Export(ctx, viewId).ColumnIds(columnIds).FileHeader(fileHeader).Query(query).Sort(sort).Type_(type_).Execute()
export
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
columnIds := []string{"Inner_example"} // []string | columnIds (optional) (default to [])
fileHeader := gridly.ExportFileHeader("none") // ExportFileHeader | fileHeader (optional)
query := "query_example" // string | query (optional) (default to "{}")
sort := "sort_example" // string | sort (optional) (default to "{}")
type_ := "type__example" // string | type (optional) (default to "csv")
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.Export(context.Background(), viewId).ColumnIds(columnIds).FileHeader(fileHeader).Query(query).Sort(sort).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.Export``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Export`: *os.File
fmt.Fprintf(os.Stdout, "Response from `ViewApi.Export`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiExportRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
columnIds | []string | columnIds | [default to []] fileHeader | ExportFileHeader | fileHeader | query | string | query | [default to "{}"] sort | string | sort | [default to "{}"] type_ | string | type | [default to "csv"]
- Content-Type: Not defined
- Accept: application/octet-stream
[Back to top] [Back to API list] [Back to Model list] [Back to README]
View Get(ctx, viewId).ColumnIds(columnIds).Include(include).Page(page).Query(query).Sort(sort).Execute()
get
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
columnIds := []string{"Inner_example"} // []string | columnIds (optional) (default to [])
include := []string{"Include_example"} // []string | include (optional) (default to [])
page := "page_example" // string | page (optional) (default to "{}")
query := "query_example" // string | query (optional) (default to "{}")
sort := "sort_example" // string | sort (optional) (default to "{}")
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.Get(context.Background(), viewId).ColumnIds(columnIds).Include(include).Page(page).Query(query).Sort(sort).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.Get``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Get`: View
fmt.Fprintf(os.Stdout, "Response from `ViewApi.Get`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiGetRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
columnIds | []string | columnIds | [default to []] include | []string | include | [default to []] page | string | page | [default to "{}"] query | string | query | [default to "{}"] sort | string | sort | [default to "{}"]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ViewStatistic GetStatistic(ctx, viewId).ColumnIds(columnIds).Execute()
getStatistic
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
columnIds := []string{"Inner_example"} // []string | columnIds (optional) (default to [])
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.GetStatistic(context.Background(), viewId).ColumnIds(columnIds).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.GetStatistic``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `GetStatistic`: ViewStatistic
fmt.Fprintf(os.Stdout, "Response from `ViewApi.GetStatistic`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiGetStatisticRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
columnIds | []string | columnIds | [default to []]
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ImportView(ctx, viewId).File(file).ImportRequest(importRequest).Type_(type_).Execute()
importView
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
file := os.NewFile(1234, "some_file") // *os.File | The following file types are supported: csv, tsv, xls, xlsx and json
importRequest := "importRequest_example" // string | importRequest (optional) (default to "{}")
type_ := "type__example" // string | type (optional) (default to "csv")
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.ImportView(context.Background(), viewId).File(file).ImportRequest(importRequest).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.ImportView``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiImportViewRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
file | *os.File | The following file types are supported: csv, tsv, xls, xlsx and json | importRequest | string | importRequest | [default to "{}"] type_ | string | type | [default to "csv"]
(empty response body)
- Content-Type: multipart/form-data
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]View List(ctx).BranchId(branchId).GridId(gridId).Type_(type_).Execute()
list
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
branchId := "branchId_example" // string | branchId (optional)
gridId := "gridId_example" // string | gridId (optional)
type_ := "type__example" // string | type (optional)
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.List(context.Background()).BranchId(branchId).GridId(gridId).Type_(type_).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.List``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `List`: []View
fmt.Fprintf(os.Stdout, "Response from `ViewApi.List`: %v\n", resp)
}
Other parameters are passed through a pointer to a apiListRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
branchId | string | branchId | |
gridId | string | gridId | |
type_ | string | type |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Task Merge(ctx, viewId).DestinationViewId(destinationViewId).MergeBranchRequest(mergeBranchRequest).MergeRecordOptions(mergeRecordOptions).Execute()
merge
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
destinationViewId := "destinationViewId_example" // string | destinationViewId
viewId := "viewId_example" // string | viewId
mergeBranchRequest := *gridly.NewMergeBranchRequest() // MergeBranchRequest |
mergeRecordOptions := []string{"MergeRecordOptions_example"} // []string | mergeRecordOptions (optional) (default to [])
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.ViewApi.Merge(context.Background(), viewId).DestinationViewId(destinationViewId).MergeBranchRequest(mergeBranchRequest).MergeRecordOptions(mergeRecordOptions).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `ViewApi.Merge``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Merge`: Task
fmt.Fprintf(os.Stdout, "Response from `ViewApi.Merge`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiMergeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|---|---|---|
destinationViewId | string | destinationViewId |
mergeBranchRequest | MergeBranchRequest | | mergeRecordOptions | []string | mergeRecordOptions | [default to []]
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]