# openapi_client.DefaultApi

All URIs are relative to *https://data.movemore.hs-offenburg.de/api/nextbike/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**health_get**](DefaultApi.md#health_get) | **GET** /health | 
[**tracker_get**](DefaultApi.md#tracker_get) | **GET** /tracker | 
[**tracker_id_delete**](DefaultApi.md#tracker_id_delete) | **DELETE** /tracker/{id} | 
[**tracker_id_get**](DefaultApi.md#tracker_id_get) | **GET** /tracker/{id} | 
[**tracker_id_values_get**](DefaultApi.md#tracker_id_values_get) | **GET** /tracker/{id}/values | 
[**tracker_id_values_put**](DefaultApi.md#tracker_id_values_put) | **PUT** /tracker/{id}/values | 
[**tracker_list_get**](DefaultApi.md#tracker_list_get) | **GET** /tracker_list | 
[**tracker_put**](DefaultApi.md#tracker_put) | **PUT** /tracker | 


# **health_get**
> str health_get()

Test if server is responsive.

### Example


```python
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)

    try:
        api_response = api_instance.health_get()
        print("The response of DefaultApi->health_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->health_get: %s\n" % e)
```



### Parameters

This endpoint does not need any parameter.

### Return type

**str**

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: text/plain

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Server healthy |  -  |
**404** | Server not healty |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_get**
> Tracker tracker_get(name=name, eui=eui)

Get Tracker by field value

### Example


```python
import openapi_client
from openapi_client.models.tracker import Tracker
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    name = 'name_example' # str |  (optional)
    eui = 56 # int |  (optional)

    try:
        api_response = api_instance.tracker_get(name=name, eui=eui)
        print("The response of DefaultApi->tracker_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **name** | **str**|  | [optional] 
 **eui** | **int**|  | [optional] 

### Return type

[**Tracker**](Tracker.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Tracker retrieved |  -  |
**404** | Tracker does not exist |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_id_delete**
> tracker_id_delete(id)

Delete Tracker by database id

### Example


```python
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    id = 56 # int | 

    try:
        api_instance.tracker_id_delete(id)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_id_delete: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  | 

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: Not defined
 - **Accept**: Not defined

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**204** | Tracker deleted |  -  |
**404** | Tracker does not exist |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_id_get**
> Tracker tracker_id_get(id)

Get Tracker by database id

### Example


```python
import openapi_client
from openapi_client.models.tracker import Tracker
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    id = 56 # int | 

    try:
        api_response = api_instance.tracker_id_get(id)
        print("The response of DefaultApi->tracker_id_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_id_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  | 

### Return type

[**Tracker**](Tracker.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Tracker retrieved |  -  |
**404** | Tracker does not exist |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_id_values_get**
> List[Measurement] tracker_id_values_get(id)

Get list of Measurement from Tracker by database id

### Example


```python
import openapi_client
from openapi_client.models.measurement import Measurement
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    id = 56 # int | 

    try:
        api_response = api_instance.tracker_id_values_get(id)
        print("The response of DefaultApi->tracker_id_values_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_id_values_get: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  | 

### Return type

[**List[Measurement]**](Measurement.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | List of Measurement retrieved |  -  |
**404** | Tracker does not exist |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_id_values_put**
> tracker_id_values_put(id, measurement=measurement)

Add list of Measurement to Tracker by database id

### Example


```python
import openapi_client
from openapi_client.models.measurement import Measurement
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    id = 56 # int | 
    measurement = [openapi_client.Measurement()] # List[Measurement] |  (optional)

    try:
        api_instance.tracker_id_values_put(id, measurement=measurement)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_id_values_put: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **int**|  | 
 **measurement** | [**List[Measurement]**](Measurement.md)|  | [optional] 

### Return type

void (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Tracker updated |  -  |
**404** | Tracker does not exist |  -  |
**422** | Tracker is invalid |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_list_get**
> List[Tracker] tracker_list_get()

Get list of all Tracker

### Example


```python
import openapi_client
from openapi_client.models.tracker import Tracker
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)

    try:
        api_response = api_instance.tracker_list_get()
        print("The response of DefaultApi->tracker_list_get:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_list_get: %s\n" % e)
```



### Parameters

This endpoint does not need any parameter.

### Return type

[**List[Tracker]**](Tracker.md)

### Authorization

No authorization required

### HTTP request headers

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

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | List of Tracker retrieved |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

# **tracker_put**
> Tracker tracker_put(tracker=tracker)

Create or or update Tracker

If the object id is zero, the object is inserted and the new id is filled into the returned object.

If the object id is non-zero, the object is updated and returned.


### Example


```python
import openapi_client
from openapi_client.models.tracker import Tracker
from openapi_client.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to https://data.movemore.hs-offenburg.de/api/nextbike/v1
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
    host = "https://data.movemore.hs-offenburg.de/api/nextbike/v1"
)


# Enter a context with an instance of the API client
with openapi_client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = openapi_client.DefaultApi(api_client)
    tracker = openapi_client.Tracker() # Tracker |  (optional)

    try:
        api_response = api_instance.tracker_put(tracker=tracker)
        print("The response of DefaultApi->tracker_put:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling DefaultApi->tracker_put: %s\n" % e)
```



### Parameters


Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **tracker** | [**Tracker**](Tracker.md)|  | [optional] 

### Return type

[**Tracker**](Tracker.md)

### Authorization

No authorization required

### HTTP request headers

 - **Content-Type**: application/json
 - **Accept**: application/json

### HTTP response details

| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Tracker updated |  -  |
**201** | Tracker created |  -  |
**422** | Tracker is invalid |  -  |

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

