# NoobchefApi.AuthApi

All URIs are relative to *http://127.0.0.1:3000/api*

Method | HTTP request | Description
------------- | ------------- | -------------
[**v1AuthCheckGet**](AuthApi.md#v1AuthCheckGet) | **GET** /v1/auth/check | 
[**v1AuthLoginExternalPost**](AuthApi.md#v1AuthLoginExternalPost) | **POST** /v1/auth/login-external | 
[**v1AuthLoginPost**](AuthApi.md#v1AuthLoginPost) | **POST** /v1/auth/login | 
[**v1AuthSignupPost**](AuthApi.md#v1AuthSignupPost) | **POST** /v1/auth/signup | 
[**v1AuthUpdatePasswordPut**](AuthApi.md#v1AuthUpdatePasswordPut) | **PUT** /v1/auth/update-password | 


<a name="v1AuthCheckGet"></a>
# **v1AuthCheckGet**
> v1AuthCheckGet(authorization)



Check token

### Example
```javascript
var NoobchefApi = require('noobchef_api');

var apiInstance = new NoobchefApi.AuthApi();

var authorization = "authorization_example"; // String | 


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.v1AuthCheckGet(authorization, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1AuthLoginExternalPost"></a>
# **v1AuthLoginExternalPost**
> v1AuthLoginExternalPost(authData)



Obtain token Using external Services

### Example
```javascript
var NoobchefApi = require('noobchef_api');

var apiInstance = new NoobchefApi.AuthApi();

var authData = new NoobchefApi.TokenExternalRequest(); // TokenExternalRequest | Auth data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.v1AuthLoginExternalPost(authData, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authData** | [**TokenExternalRequest**](TokenExternalRequest.md)| Auth data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1AuthLoginPost"></a>
# **v1AuthLoginPost**
> v1AuthLoginPost(authData)



Obtain token

### Example
```javascript
var NoobchefApi = require('noobchef_api');

var apiInstance = new NoobchefApi.AuthApi();

var authData = new NoobchefApi.TokenRequest(); // TokenRequest | Auth data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.v1AuthLoginPost(authData, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authData** | [**TokenRequest**](TokenRequest.md)| Auth data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1AuthSignupPost"></a>
# **v1AuthSignupPost**
> v1AuthSignupPost(user)



Create a new user

### Example
```javascript
var NoobchefApi = require('noobchef_api');

var apiInstance = new NoobchefApi.AuthApi();

var user = new NoobchefApi.UserRequest(); // UserRequest | User data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.v1AuthSignupPost(user, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **user** | [**UserRequest**](UserRequest.md)| User data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1AuthUpdatePasswordPut"></a>
# **v1AuthUpdatePasswordPut**
> v1AuthUpdatePasswordPut(user)



Update user password

### Example
```javascript
var NoobchefApi = require('noobchef_api');

var apiInstance = new NoobchefApi.AuthApi();

var user = new NoobchefApi.UpdatePasswordRequest(); // UpdatePasswordRequest | User data


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
apiInstance.v1AuthUpdatePasswordPut(user, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **user** | [**UpdatePasswordRequest**](UpdatePasswordRequest.md)| User data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

