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 |
*os.File GetMethodsForType(ctx, name).Execute()
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)
}
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
name | string |
Other parameters are passed through a pointer to a apiGetMethodsForTypeRequest struct via the builder pattern
Name | Type | Description | Notes |
---|
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File GetNodes(ctx).Execute()
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)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetNodesRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
*os.File GetTypes(ctx).Execute()
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)
}
This endpoint does not need any parameter.
Other parameters are passed through a pointer to a apiGetTypesRequest struct via the builder pattern
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]