All URIs are relative to https://api.gridly.com
Method | HTTP request | Description |
---|---|---|
Create | Post /v1/views/{viewId}/records | create |
Delete | Delete /v1/views/{viewId}/records | delete |
Fetch | Get /v1/views/{viewId}/records | fetch |
FetchHistories | Get /v1/views/{viewId}/records/{recordId}/histories | fetchHistories |
Update | Patch /v1/views/{viewId}/records | update |
UpdateRecord | Patch /v1/views/{viewId}/records/{id} | updateRecord |
[]Record Create(ctx, viewId).CreateRecords(createRecords).Execute()
create
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
createRecords := []gridly.SetRecord{*gridly.NewSetRecord()} // []SetRecord | createRecords
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.Create(context.Background(), viewId).CreateRecords(createRecords).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.Create``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Create`: []Record
fmt.Fprintf(os.Stdout, "Response from `RecordApi.Create`: %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 apiCreateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
createRecords | []SetRecord | createRecords |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Delete(ctx, viewId).DeleteRecord(deleteRecord).Execute()
delete
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
deleteRecord := *gridly.NewDeleteRecord() // DeleteRecord |
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.Delete(context.Background(), viewId).DeleteRecord(deleteRecord).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.Delete``: %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 apiDeleteRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
deleteRecord | DeleteRecord | |
(empty response body)
- Content-Type: application/json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Record Fetch(ctx, viewId).ColumnIds(columnIds).Page(page).Query(query).Sort(sort).FetchFileOption(fetchFileOption).AfterRecordId(afterRecordId).BeforeRecordId(beforeRecordId).Execute()
fetch
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
columnIds := []string{"Inner_example"} // []string | columnIds (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 "{}")
fetchFileOption := gridly.FetchFileOption("all") // FetchFileOption | fetchFileOption (optional) (default to "id")
afterRecordId := "afterRecordId_example" // string | afterRecordId (optional)
beforeRecordId := "beforeRecordId_example" // string | beforeRecordId (optional)
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.Fetch(context.Background(), viewId).ColumnIds(columnIds).Page(page).Query(query).Sort(sort).FetchFileOption(fetchFileOption).AfterRecordId(afterRecordId).BeforeRecordId(beforeRecordId).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.Fetch``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Fetch`: []Record
fmt.Fprintf(os.Stdout, "Response from `RecordApi.Fetch`: %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 apiFetchRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
columnIds | []string | columnIds | [default to []] page | string | page | [default to "{}"] query | string | query | [default to "{}"] sort | string | sort | [default to "{}"] fetchFileOption | FetchFileOption | fetchFileOption | [default to "id"] afterRecordId | string | afterRecordId | beforeRecordId | string | beforeRecordId |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]RecordHistory FetchHistories(ctx, viewId, recordId).FetchRequest(fetchRequest).Execute()
fetchHistories
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
recordId := "recordId_example" // string | recordId
fetchRequest := map[string][]gridly.FetchRecordHistoryRequest{ ... } // FetchRecordHistoryRequest | fetchRequest
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.FetchHistories(context.Background(), viewId, recordId).FetchRequest(fetchRequest).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.FetchHistories``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `FetchHistories`: []RecordHistory
fmt.Fprintf(os.Stdout, "Response from `RecordApi.FetchHistories`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
viewId | string | viewId | |
recordId | string | recordId |
Other parameters are passed through a pointer to a apiFetchHistoriesRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
fetchRequest | FetchRecordHistoryRequest | fetchRequest |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Record Update(ctx, viewId).SetRecord(setRecord).Execute()
update
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
viewId := "viewId_example" // string | viewId
setRecord := []gridly.SetRecord{*gridly.NewSetRecord()} // []SetRecord |
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.Update(context.Background(), viewId).SetRecord(setRecord).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.Update``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `Update`: []Record
fmt.Fprintf(os.Stdout, "Response from `RecordApi.Update`: %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 apiUpdateRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
setRecord | []SetRecord | |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Record UpdateRecord(ctx, id, viewId).SetRecord(setRecord).Path(path).Execute()
updateRecord
package main
import (
"context"
"fmt"
"os"
gridly "./openapi"
)
func main() {
id := "id_example" // string | id
viewId := "viewId_example" // string | viewId
setRecord := *gridly.NewSetRecord() // SetRecord |
path := "path_example" // string | path (optional)
configuration := gridly.NewConfiguration()
apiClient := gridly.NewAPIClient(configuration)
resp, r, err := apiClient.RecordApi.UpdateRecord(context.Background(), id, viewId).SetRecord(setRecord).Path(path).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `RecordApi.UpdateRecord``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
// response from `UpdateRecord`: Record
fmt.Fprintf(os.Stdout, "Response from `RecordApi.UpdateRecord`: %v\n", resp)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | id | |
viewId | string | viewId |
Other parameters are passed through a pointer to a apiUpdateRecordRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
setRecord | SetRecord | | path | string | path |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]