-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add route logs for events and routes APIs (#28)
- Loading branch information
Showing
93 changed files
with
880 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# NotehubJs.GetRouteLogsByRoute200ResponseInner | ||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
| ------------ | ----------- | ------------------------------------- | ---------- | | ||
| **date** | **String** | The date of the logs. | [optional] | | ||
| **routeUID** | **String** | The route UID. | [optional] | | ||
| **eventUID** | **String** | The event UID. | [optional] | | ||
| **attn** | **Boolean** | Whether the event was routed in error | [optional] | | ||
| **status** | **String** | The status of the event. | [optional] | | ||
| **text** | **String** | The response body of the route. | [optional] | | ||
| **url** | **String** | The URL of the route. | [optional] | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,120 @@ | ||
# NotehubJs.RouteLogsApi | ||
|
||
All URIs are relative to *https://api.notefile.net* | ||
|
||
| Method | HTTP request | Description | | ||
| -------------------------------------------------------------- | -------------------------------------------------------------- | ----------- | | ||
| [**getRouteLogsByEvent**](RouteLogsApi.md#getRouteLogsByEvent) | **GET** /v1/projects/{projectUID}/events/{eventUID}/route-logs | | ||
| [**getRouteLogsByRoute**](RouteLogsApi.md#getRouteLogsByRoute) | **GET** /v1/projects/{projectUID}/routes/{routeUID}/route-logs | | ||
|
||
## getRouteLogsByEvent | ||
|
||
> [GetRouteLogsByRoute200ResponseInner] getRouteLogsByEvent(projectUID, eventUID) | ||
Get Route Logs by Event UID | ||
|
||
### Example | ||
|
||
```javascript | ||
import * as NotehubJs from '@blues-inc/notehub-js'; | ||
let defaultClient = NotehubJs.ApiClient.instance; | ||
// Configure API key authorization: api_key | ||
let api_key = defaultClient.authentications['api_key']; | ||
api_key.apiKey = 'YOUR API KEY'; | ||
|
||
let apiInstance = new NotehubJs.RouteLogsApi(); | ||
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String | | ||
let eventUID = 4506f411-dea6-44a0-9743-1130f57d7747; // String | | ||
apiInstance.getRouteLogsByEvent(projectUID, eventUID).then((data) => { | ||
console.log('API called successfully. Returned data: ' + JSON.stringify(data)); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Notes | | ||
| -------------- | ---------- | ----------- | ----- | | ||
| **projectUID** | **String** | | | ||
| **eventUID** | **String** | | | ||
|
||
### Return type | ||
|
||
[**[GetRouteLogsByRoute200ResponseInner]**](GetRouteLogsByRoute200ResponseInner.md) | ||
|
||
### Authorization | ||
|
||
[api_key](../README.md#api_key) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json | ||
|
||
## getRouteLogsByRoute | ||
|
||
> [GetRouteLogsByRoute200ResponseInner] getRouteLogsByRoute(projectUID, routeUID, opts) | ||
Get Route Logs by Route UID | ||
|
||
### Example | ||
|
||
```javascript | ||
import * as NotehubJs from '@blues-inc/notehub-js'; | ||
let defaultClient = NotehubJs.ApiClient.instance; | ||
// Configure API key authorization: api_key | ||
let api_key = defaultClient.authentications['api_key']; | ||
api_key.apiKey = 'YOUR API KEY'; | ||
|
||
let apiInstance = new NotehubJs.RouteLogsApi(); | ||
let projectUID = app:2606f411-dea6-44a0-9743-1130f57d77d8; // String | | ||
let routeUID = route:cbd20093cba58392c9f9bbdd0cdeb1a0; // String | | ||
let opts = { | ||
'pageSize': 50, // Number | | ||
'pageNum': 1, // Number | | ||
'deviceUID': "deviceUID_example", // String | A Device UID. | ||
'sortBy': "'captured'", // String | | ||
'sortOrder': "'asc'", // String | | ||
'startDate': 1628631763, // Number | Unix timestamp | ||
'endDate': 1657894210, // Number | Unix timestamp | ||
'systemFilesOnly': true, // Boolean | | ||
'files': _health.qo, data.qo // String | | ||
}; | ||
apiInstance.getRouteLogsByRoute(projectUID, routeUID, opts).then((data) => { | ||
console.log('API called successfully. Returned data: ' + JSON.stringify(data)); | ||
}, (error) => { | ||
console.error(error); | ||
}); | ||
|
||
``` | ||
|
||
### Parameters | ||
|
||
| Name | Type | Description | Notes | | ||
| ------------------- | ----------- | -------------- | ------------------------------------------ | | ||
| **projectUID** | **String** | | | ||
| **routeUID** | **String** | | | ||
| **pageSize** | **Number** | | [optional] [default to 50] | | ||
| **pageNum** | **Number** | | [optional] [default to 1] | | ||
| **deviceUID** | **String** | A Device UID. | [optional] | | ||
| **sortBy** | **String** | | [optional] [default to 'captured'] | | ||
| **sortOrder** | **String** | | [optional] [default to 'asc'] | | ||
| **startDate** | **Number** | Unix timestamp | [optional] | | ||
| **endDate** | **Number** | Unix timestamp | [optional] | | ||
| **systemFilesOnly** | **Boolean** | | [optional] | | ||
| **files** | **String** | | [optional] | | ||
|
||
### Return type | ||
|
||
[**[GetRouteLogsByRoute200ResponseInner]**](GetRouteLogsByRoute200ResponseInner.md) | ||
|
||
### Authorization | ||
|
||
[api_key](../README.md#api_key) | ||
|
||
### HTTP request headers | ||
|
||
- **Content-Type**: Not defined | ||
- **Accept**: application/json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.