|
| 1 | +# openapi_client.NotesApi |
| 2 | + |
| 3 | +All URIs are relative to *https://api.groundlight.ai/device-api* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**create_note**](NotesApi.md#create_note) | **POST** /v1/notes | |
| 8 | +[**get_notes**](NotesApi.md#get_notes) | **GET** /v1/notes | |
| 9 | + |
| 10 | + |
| 11 | +# **create_note** |
| 12 | +> [Note] create_note(detector_id, note_creation_input) |
| 13 | +
|
| 14 | + |
| 15 | + |
| 16 | +Create a new note. |
| 17 | + |
| 18 | +### Example |
| 19 | + |
| 20 | +* Api Key Authentication (ApiToken): |
| 21 | + |
| 22 | +```python |
| 23 | +import time |
| 24 | +import openapi_client |
| 25 | +from openapi_client.api import notes_api |
| 26 | +from openapi_client.model.note import Note |
| 27 | +from openapi_client.model.note_creation_input import NoteCreationInput |
| 28 | +from pprint import pprint |
| 29 | +# Defining the host is optional and defaults to https://api.groundlight.ai/device-api |
| 30 | +# See configuration.py for a list of all supported configuration parameters. |
| 31 | +configuration = openapi_client.Configuration( |
| 32 | + host = "https://api.groundlight.ai/device-api" |
| 33 | +) |
| 34 | + |
| 35 | +# The client must configure the authentication and authorization parameters |
| 36 | +# in accordance with the API server security policy. |
| 37 | +# Examples for each auth method are provided below, use the example that |
| 38 | +# satisfies your auth use case. |
| 39 | + |
| 40 | +# Configure API key authorization: ApiToken |
| 41 | +configuration.api_key['ApiToken'] = 'YOUR_API_KEY' |
| 42 | + |
| 43 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 44 | +# configuration.api_key_prefix['ApiToken'] = 'Bearer' |
| 45 | + |
| 46 | +# Enter a context with an instance of the API client |
| 47 | +with openapi_client.ApiClient(configuration) as api_client: |
| 48 | + # Create an instance of the API class |
| 49 | + api_instance = notes_api.NotesApi(api_client) |
| 50 | + detector_id = "detector_id_example" # str | the detector to associate the note with |
| 51 | + note_creation_input = NoteCreationInput( |
| 52 | + content="content_example", |
| 53 | + ) # NoteCreationInput | |
| 54 | + |
| 55 | + # example passing only required values which don't have defaults set |
| 56 | + try: |
| 57 | + api_response = api_instance.create_note(detector_id, note_creation_input) |
| 58 | + pprint(api_response) |
| 59 | + except openapi_client.ApiException as e: |
| 60 | + print("Exception when calling NotesApi->create_note: %s\n" % e) |
| 61 | +``` |
| 62 | + |
| 63 | + |
| 64 | +### Parameters |
| 65 | + |
| 66 | +Name | Type | Description | Notes |
| 67 | +------------- | ------------- | ------------- | ------------- |
| 68 | + **detector_id** | **str**| the detector to associate the note with | |
| 69 | + **note_creation_input** | [**NoteCreationInput**](NoteCreationInput.md)| | |
| 70 | + |
| 71 | +### Return type |
| 72 | + |
| 73 | +[**[Note]**](Note.md) |
| 74 | + |
| 75 | +### Authorization |
| 76 | + |
| 77 | +[ApiToken](../README.md#ApiToken) |
| 78 | + |
| 79 | +### HTTP request headers |
| 80 | + |
| 81 | + - **Content-Type**: application/json |
| 82 | + - **Accept**: application/json |
| 83 | + |
| 84 | + |
| 85 | +### HTTP response details |
| 86 | + |
| 87 | +| Status code | Description | Response headers | |
| 88 | +|-------------|-------------|------------------| |
| 89 | +**201** | | - | |
| 90 | + |
| 91 | +[[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) |
| 92 | + |
| 93 | +# **get_notes** |
| 94 | +> InlineResponse200 get_notes(detector_id) |
| 95 | +
|
| 96 | + |
| 97 | + |
| 98 | +Retrieve notes for a detector |
| 99 | + |
| 100 | +### Example |
| 101 | + |
| 102 | +* Api Key Authentication (ApiToken): |
| 103 | + |
| 104 | +```python |
| 105 | +import time |
| 106 | +import openapi_client |
| 107 | +from openapi_client.api import notes_api |
| 108 | +from openapi_client.model.inline_response200 import InlineResponse200 |
| 109 | +from pprint import pprint |
| 110 | +# Defining the host is optional and defaults to https://api.groundlight.ai/device-api |
| 111 | +# See configuration.py for a list of all supported configuration parameters. |
| 112 | +configuration = openapi_client.Configuration( |
| 113 | + host = "https://api.groundlight.ai/device-api" |
| 114 | +) |
| 115 | + |
| 116 | +# The client must configure the authentication and authorization parameters |
| 117 | +# in accordance with the API server security policy. |
| 118 | +# Examples for each auth method are provided below, use the example that |
| 119 | +# satisfies your auth use case. |
| 120 | + |
| 121 | +# Configure API key authorization: ApiToken |
| 122 | +configuration.api_key['ApiToken'] = 'YOUR_API_KEY' |
| 123 | + |
| 124 | +# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed |
| 125 | +# configuration.api_key_prefix['ApiToken'] = 'Bearer' |
| 126 | + |
| 127 | +# Enter a context with an instance of the API client |
| 128 | +with openapi_client.ApiClient(configuration) as api_client: |
| 129 | + # Create an instance of the API class |
| 130 | + api_instance = notes_api.NotesApi(api_client) |
| 131 | + detector_id = "detector_id_example" # str | the detector whose notes to retrieve |
| 132 | + |
| 133 | + # example passing only required values which don't have defaults set |
| 134 | + try: |
| 135 | + api_response = api_instance.get_notes(detector_id) |
| 136 | + pprint(api_response) |
| 137 | + except openapi_client.ApiException as e: |
| 138 | + print("Exception when calling NotesApi->get_notes: %s\n" % e) |
| 139 | +``` |
| 140 | + |
| 141 | + |
| 142 | +### Parameters |
| 143 | + |
| 144 | +Name | Type | Description | Notes |
| 145 | +------------- | ------------- | ------------- | ------------- |
| 146 | + **detector_id** | **str**| the detector whose notes to retrieve | |
| 147 | + |
| 148 | +### Return type |
| 149 | + |
| 150 | +[**InlineResponse200**](InlineResponse200.md) |
| 151 | + |
| 152 | +### Authorization |
| 153 | + |
| 154 | +[ApiToken](../README.md#ApiToken) |
| 155 | + |
| 156 | +### HTTP request headers |
| 157 | + |
| 158 | + - **Content-Type**: Not defined |
| 159 | + - **Accept**: application/json |
| 160 | + |
| 161 | + |
| 162 | +### HTTP response details |
| 163 | + |
| 164 | +| Status code | Description | Response headers | |
| 165 | +|-------------|-------------|------------------| |
| 166 | +**200** | | - | |
| 167 | + |
| 168 | +[[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) |
| 169 | + |
0 commit comments