# PassAppSwaggerApi.EmployeesAuthApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**forgetPasswordEmployee**](EmployeesAuthApi.md#forgetPasswordEmployee) | **PUT** /employees/forget/password | 
[**loginEmployee**](EmployeesAuthApi.md#loginEmployee) | **POST** /employees/login | 
[**registerEmployee**](EmployeesAuthApi.md#registerEmployee) | **POST** /employees | 
[**resendEmployeeCode**](EmployeesAuthApi.md#resendEmployeeCode) | **GET** /employees/resend/code/{id} | 
[**verifyEmployee**](EmployeesAuthApi.md#verifyEmployee) | **POST** /employees/verify | 

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



forget employee password

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

let apiInstance = new PassAppSwaggerApi.EmployeesAuthApi();
let body = new PassAppSwaggerApi.Employee(); // Employee | employee email only

apiInstance.forgetPasswordEmployee(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)| employee email 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="loginEmployee"></a>
# **loginEmployee**
> Employee loginEmployee(body)



login

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

let apiInstance = new PassAppSwaggerApi.EmployeesAuthApi();
let body = new PassAppSwaggerApi.LoginModel(); // LoginModel | login details

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**LoginModel**](LoginModel.md)| login details | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="registerEmployee"></a>
# **registerEmployee**
> Employee registerEmployee(body)



employees register

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

let apiInstance = new PassAppSwaggerApi.EmployeesAuthApi();
let body = new PassAppSwaggerApi.Employee(); // Employee | register employees

apiInstance.registerEmployee(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)| register employees | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="resendEmployeeCode"></a>
# **resendEmployeeCode**
> CommonSuccess resendEmployeeCode(id)



resend verify code

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

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

apiInstance.resendEmployeeCode(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

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="verifyEmployee"></a>
# **verifyEmployee**
> Employee verifyEmployee(body)



verify employee

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

let apiInstance = new PassAppSwaggerApi.EmployeesAuthApi();
let body = new PassAppSwaggerApi.Employee(); // Employee | code details

apiInstance.verifyEmployee(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)| code details | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

