Skip to content

Latest commit

 

History

History
197 lines (124 loc) · 4.59 KB

DataCollectionServiceApi.md

File metadata and controls

197 lines (124 loc) · 4.59 KB

\DataCollectionServiceApi

All URIs are relative to http://api.madana.io/rest

Method HTTP request Description
GetMethodsForType Get /datacollection/types/{name}/methods
GetNodes Get /datacollection/methods
GetTypes Get /datacollection/types

GetMethodsForType

*os.File GetMethodsForType(ctx, name).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {
    name := "name_example" // string | 

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.DataCollectionServiceApi.GetMethodsForType(context.Background(), name).Execute()
    if err.Error() != "" {
        fmt.Fprintf(os.Stderr, "Error when calling `DataCollectionServiceApi.GetMethodsForType``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetMethodsForType`: *os.File
    fmt.Fprintf(os.Stdout, "Response from `DataCollectionServiceApi.GetMethodsForType`: %v\n", resp)
}

Path Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
name string

Other Parameters

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

Name Type Description Notes

Return type

*os.File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetNodes

*os.File GetNodes(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.DataCollectionServiceApi.GetNodes(context.Background()).Execute()
    if err.Error() != "" {
        fmt.Fprintf(os.Stderr, "Error when calling `DataCollectionServiceApi.GetNodes``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetNodes`: *os.File
    fmt.Fprintf(os.Stdout, "Response from `DataCollectionServiceApi.GetNodes`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

*os.File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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

GetTypes

*os.File GetTypes(ctx).Execute()

Example

package main

import (
    "context"
    "fmt"
    "os"
    openapiclient "./openapi"
)

func main() {

    configuration := openapiclient.NewConfiguration()
    api_client := openapiclient.NewAPIClient(configuration)
    resp, r, err := api_client.DataCollectionServiceApi.GetTypes(context.Background()).Execute()
    if err.Error() != "" {
        fmt.Fprintf(os.Stderr, "Error when calling `DataCollectionServiceApi.GetTypes``: %v\n", err)
        fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r)
    }
    // response from `GetTypes`: *os.File
    fmt.Fprintf(os.Stdout, "Response from `DataCollectionServiceApi.GetTypes`: %v\n", resp)
}

Path Parameters

This endpoint does not need any parameter.

Other Parameters

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

Return type

*os.File

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

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