All URIs are relative to http://localhost
| Method | HTTP request | Description |
|---|---|---|
| GraphQLDebug | Post /graphql-debug | |
| GraphQLGet | Get /graphql | |
| GraphQLIndex | Post /graphql |
GraphQLDebug(ctx).GraphQLQuery(graphQLQuery).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/max-bytes/omnikeeper-client-go"
)
func main() {
graphQLQuery := *openapiclient.NewGraphQLQuery() // GraphQLQuery | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.GraphQLAPI.GraphQLDebug(context.Background()).GraphQLQuery(graphQLQuery).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphQLAPI.GraphQLDebug``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiGraphQLDebugRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| graphQLQuery | GraphQLQuery |
(empty response body)
- Content-Type: application/json, application/json;odata.metadata=minimal;odata.streaming=true, application/json;odata.metadata=minimal;odata.streaming=false, application/json;odata.metadata=minimal, application/json;odata.metadata=full;odata.streaming=true, application/json;odata.metadata=full;odata.streaming=false, application/json;odata.metadata=full, application/json;odata.metadata=none;odata.streaming=true, application/json;odata.metadata=none;odata.streaming=false, application/json;odata.metadata=none, application/json;odata.streaming=true, application/json;odata.streaming=false, application/xml, text/plain, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GraphQLGet(ctx).OperationName(operationName).Query(query).Variables(variables).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/max-bytes/omnikeeper-client-go"
)
func main() {
operationName := "operationName_example" // string | (optional)
query := "query_example" // string | (optional)
variables := map[string]interface{}{"key": interface{}(123)} // map[string]interface{} | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.GraphQLAPI.GraphQLGet(context.Background()).OperationName(operationName).Query(query).Variables(variables).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphQLAPI.GraphQLGet``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiGraphQLGetRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| operationName | string | ||
| query | string | ||
| variables | map[string]interface{} |
(empty response body)
- Content-Type: Not defined
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GraphQLIndex(ctx).GraphQLQuery(graphQLQuery).Execute()
package main
import (
"context"
"fmt"
"os"
openapiclient "github.com/max-bytes/omnikeeper-client-go"
)
func main() {
graphQLQuery := *openapiclient.NewGraphQLQuery() // GraphQLQuery | (optional)
configuration := openapiclient.NewConfiguration()
apiClient := openapiclient.NewAPIClient(configuration)
r, err := apiClient.GraphQLAPI.GraphQLIndex(context.Background()).GraphQLQuery(graphQLQuery).Execute()
if err != nil {
fmt.Fprintf(os.Stderr, "Error when calling `GraphQLAPI.GraphQLIndex``: %v\n", err)
fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
}
}Other parameters are passed through a pointer to a apiGraphQLIndexRequest struct via the builder pattern
| Name | Type | Description | Notes |
|---|---|---|---|
| graphQLQuery | GraphQLQuery |
(empty response body)
- Content-Type: application/json, application/json;odata.metadata=minimal;odata.streaming=true, application/json;odata.metadata=minimal;odata.streaming=false, application/json;odata.metadata=minimal, application/json;odata.metadata=full;odata.streaming=true, application/json;odata.metadata=full;odata.streaming=false, application/json;odata.metadata=full, application/json;odata.metadata=none;odata.streaming=true, application/json;odata.metadata=none;odata.streaming=false, application/json;odata.metadata=none, application/json;odata.streaming=true, application/json;odata.streaming=false, application/xml, text/plain, text/json, application/*+json
- Accept: Not defined
[Back to top] [Back to API list] [Back to Model list] [Back to README]