# PassAppSwaggerApi.AuthApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**forgetPassword**](AuthApi.md#forgetPassword) | **PUT** /users/forget/password | 
[**login**](AuthApi.md#login) | **POST** /users/login | 
[**register**](AuthApi.md#register) | **POST** /users | 
[**resendCode**](AuthApi.md#resendCode) | **GET** /users/resend/code/{id} | 
[**verifyUser**](AuthApi.md#verifyUser) | **POST** /users/verify | 

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



forget user password

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

let apiInstance = new PassAppSwaggerApi.AuthApi();
let body = new PassAppSwaggerApi.User(); // User | user email only

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**User**](User.md)| user 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="login"></a>
# **login**
> User login(body)



login

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

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

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

[**User**](User.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="register"></a>
# **register**
> User register(body)



register

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

let apiInstance = new PassAppSwaggerApi.AuthApi();
let body = new PassAppSwaggerApi.User(); // User | register details

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**User**](User.md)| register details | 

### Return type

[**User**](User.md)

### Authorization

No authorization required

### HTTP request headers

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

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



resend verify code

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

let apiInstance = new PassAppSwaggerApi.AuthApi();
let id = "id_example"; // String | user id

apiInstance.resendCode(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**| user id | 

### Return type

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

### Authorization

No authorization required

### HTTP request headers

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

<a name="verifyUser"></a>
# **verifyUser**
> User verifyUser(body)



verify user

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

let apiInstance = new PassAppSwaggerApi.AuthApi();
let body = new PassAppSwaggerApi.User(); // User | code details

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**User**](User.md)| code details | 

### Return type

[**User**](User.md)

### Authorization

No authorization required

### HTTP request headers

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

