# SwiftShiftApi.AccessLogApi

All URIs are relative to *http://localhost:3000*

Method | HTTP request | Description
------------- | ------------- | -------------
[**getAccessLog**](AccessLogApi.md#getAccessLog) | **GET** /access_logs/{id} | Gets access log by id
[**listAccessLogs**](AccessLogApi.md#listAccessLogs) | **GET** /access_logs | Gets list of all access logs


<a name="getAccessLog"></a>
# **getAccessLog**
> AccessLog getAccessLog(id)

Gets access log by id

Get access log by id.

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.AccessLogApi();
let id = "id_example"; // String | The id of the access log.
apiInstance.getAccessLog(id, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **id** | **String**| The id of the access log. | 

### Return type

[**AccessLog**](AccessLog.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="listAccessLogs"></a>
# **listAccessLogs**
> InlineResponse20015 listAccessLogs(opts)

Gets list of all access logs

### Example
```javascript
import SwiftShiftApi from 'swift_shift_api';

let apiInstance = new SwiftShiftApi.AccessLogApi();
let opts = {
  'take': 50, // Number | Page size.
  'skip': 0, // Number | Start index.
  'search': "search_example", // String | Search phrase.
  'select': ["null"], // [String] | List of the properties to return.
  'sort': ["null"], // [String] | List of the properties to sort by.
  'q': "q_example" // String | resource query language
};
apiInstance.listAccessLogs(opts, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **take** | **Number**| Page size. | [optional] [default to 50]
 **skip** | **Number**| Start index. | [optional] [default to 0]
 **search** | **String**| Search phrase. | [optional] 
 **select** | [**[String]**](String.md)| List of the properties to return. | [optional] 
 **sort** | [**[String]**](String.md)| List of the properties to sort by. | [optional] 
 **q** | **String**| resource query language | [optional] 

### Return type

[**InlineResponse20015**](InlineResponse20015.md)

### Authorization

No authorization required

### HTTP request headers

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

