Skip to content

Latest commit

 

History

History
180 lines (124 loc) · 5.06 KB

File metadata and controls

180 lines (124 loc) · 5.06 KB

madana_apiclient.DataCollectionServiceApi

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

Method HTTP request Description
get_methods_for_type GET /datacollection/types/{name}/methods
get_nodes GET /datacollection/methods
get_types GET /datacollection/types

get_methods_for_type

file_type get_methods_for_type(name)

Example

import time
import madana_apiclient
from madana_apiclient.api import data_collection_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = data_collection_service_api.DataCollectionServiceApi(api_client)
    name = "name_example" # str | 

    # example passing only required values which don't have defaults set
    try:
        api_response = api_instance.get_methods_for_type(name)
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling DataCollectionServiceApi->get_methods_for_type: %s\n" % e)

Parameters

Name Type Description Notes
name str

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

get_nodes

file_type get_nodes()

Example

import time
import madana_apiclient
from madana_apiclient.api import data_collection_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = data_collection_service_api.DataCollectionServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.get_nodes()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling DataCollectionServiceApi->get_nodes: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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

get_types

file_type get_types()

Example

import time
import madana_apiclient
from madana_apiclient.api import data_collection_service_api
from pprint import pprint
# Defining the host is optional and defaults to http://api.madana.io/rest
# See configuration.py for a list of all supported configuration parameters.
configuration = madana_apiclient.Configuration(
    host = "http://api.madana.io/rest"
)


# Enter a context with an instance of the API client
with madana_apiclient.ApiClient() as api_client:
    # Create an instance of the API class
    api_instance = data_collection_service_api.DataCollectionServiceApi(api_client)

    # example, this endpoint has no required or optional parameters
    try:
        api_response = api_instance.get_types()
        pprint(api_response)
    except madana_apiclient.ApiException as e:
        print("Exception when calling DataCollectionServiceApi->get_types: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

file_type

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status code Description Response headers
200 -

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