# PassAppSwaggerApi.EmployeesApi

All URIs are relative to *http://localhost:3010/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**changePasswordEmployee**](EmployeesApi.md#changePasswordEmployee) | **PUT** /employees/change/password | 
[**deleteEmployee**](EmployeesApi.md#deleteEmployee) | **DELETE** /employees/{id} | 
[**getEmployee**](EmployeesApi.md#getEmployee) | **GET** /employees/{id} | 
[**getEmployees**](EmployeesApi.md#getEmployees) | **GET** /employees | 
[**updateEmployee**](EmployeesApi.md#updateEmployee) | **PUT** /employees/{id} | 

<a name="changePasswordEmployee"></a>
# **changePasswordEmployee**
> CommonSuccess changePasswordEmployee(body)



change empoyee password

### Example
```javascript
import PassAppSwaggerApi from 'pass_app_swagger_api';

let apiInstance = new PassAppSwaggerApi.EmployeesApi();
let body = new PassAppSwaggerApi.Employee(); // Employee | _id ,new_password and password only

apiInstance.changePasswordEmployee(body, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Employee**](Employee.md)| _id ,new_password and password only | 

### Return type

[**CommonSuccess**](CommonSuccess.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="deleteEmployee"></a>
# **deleteEmployee**
> Employee deleteEmployee(id)



delete employee

### Example
```javascript
import PassAppSwaggerApi from 'pass_app_swagger_api';

let apiInstance = new PassAppSwaggerApi.EmployeesApi();
let id = "id_example"; // String | employee id

apiInstance.deleteEmployee(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**| employee id | 

### Return type

[**Employee**](Employee.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getEmployee"></a>
# **getEmployee**
> Employee getEmployee(id)



get selected employee

### Example
```javascript
import PassAppSwaggerApi from 'pass_app_swagger_api';

let apiInstance = new PassAppSwaggerApi.EmployeesApi();
let id = "id_example"; // String | employee id

apiInstance.getEmployee(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**| employee id | 

### Return type

[**Employee**](Employee.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="getEmployees"></a>
# **getEmployees**
> [Employee] getEmployees()



get all employees

### Example
```javascript
import PassAppSwaggerApi from 'pass_app_swagger_api';

let apiInstance = new PassAppSwaggerApi.EmployeesApi();
apiInstance.getEmployees((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**[Employee]**](Employee.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="updateEmployee"></a>
# **updateEmployee**
> Employee updateEmployee(bodyid)



update employee

### Example
```javascript
import PassAppSwaggerApi from 'pass_app_swagger_api';

let apiInstance = new PassAppSwaggerApi.EmployeesApi();
let body = new PassAppSwaggerApi.Employee(); // Employee | employee details
let id = "id_example"; // String | employee id

apiInstance.updateEmployee(bodyid, (error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**Employee**](Employee.md)| employee details | 
 **id** | **String**| employee id | 

### Return type

[**Employee**](Employee.md)

### Authorization

No authorization required

### HTTP request headers

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

