Skip to content

Latest commit

 

History

History
201 lines (125 loc) · 5.86 KB

GraphQLAPI.md

File metadata and controls

201 lines (125 loc) · 5.86 KB

\GraphQLAPI

All URIs are relative to http://localhost

Method HTTP request Description
GraphQLDebug Post /graphql-debug
GraphQLGet Get /graphql
GraphQLIndex Post /graphql

GraphQLDebug

GraphQLDebug(ctx).GraphQLQuery(graphQLQuery).Execute()

Example

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)
	}
}

Path Parameters

Other Parameters

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

Name Type Description Notes
graphQLQuery GraphQLQuery

Return type

(empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • 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

GraphQLGet(ctx).OperationName(operationName).Query(query).Variables(variables).Execute()

Example

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)
	}
}

Path Parameters

Other Parameters

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{}

Return type

(empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

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

GraphQLIndex

GraphQLIndex(ctx).GraphQLQuery(graphQLQuery).Execute()

Example

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)
	}
}

Path Parameters

Other Parameters

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

Name Type Description Notes
graphQLQuery GraphQLQuery

Return type

(empty response body)

Authorization

oauth2, oauth2

HTTP request headers

  • 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]