# NoobchefApi.RecipesApi

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

Method | HTTP request | Description
------------- | ------------- | -------------
[**v1RecipesGet**](RecipesApi.md#v1RecipesGet) | **GET** /v1/recipes | 
[**v1RecipesPost**](RecipesApi.md#v1RecipesPost) | **POST** /v1/recipes | 
[**v1RecipesRecipeIdDelete**](RecipesApi.md#v1RecipesRecipeIdDelete) | **DELETE** /v1/recipes/{recipeId} | 
[**v1RecipesRecipeIdGet**](RecipesApi.md#v1RecipesRecipeIdGet) | **GET** /v1/recipes/{recipeId} | 
[**v1RecipesRecipeIdPut**](RecipesApi.md#v1RecipesRecipeIdPut) | **PUT** /v1/recipes/{recipeId} | 


<a name="v1RecipesGet"></a>
# **v1RecipesGet**
> v1RecipesGet(authorization, opts)



Fetch all recipes

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

var apiInstance = new NoobchefApi.RecipesApi();

var authorization = "authorization_example"; // String | 

var opts = { 
  'page': "page_example", // String | Page number
  'perpage': "perpage_example", // String | The numbers of items to return
  'search': "search_example" // String | search by field:search String
};

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 
 **page** | **String**| Page number | [optional] 
 **perpage** | **String**| The numbers of items to return | [optional] 
 **search** | **String**| search by field:search String | [optional] 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1RecipesPost"></a>
# **v1RecipesPost**
> v1RecipesPost(authorization, recipe)



Create a new recipe

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

var apiInstance = new NoobchefApi.RecipesApi();

var authorization = "authorization_example"; // String | 

var recipe = new NoobchefApi.RecipeRequest(); // RecipeRequest | Recipe data


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 
 **recipe** | [**RecipeRequest**](RecipeRequest.md)| Recipe data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1RecipesRecipeIdDelete"></a>
# **v1RecipesRecipeIdDelete**
> v1RecipesRecipeIdDelete(authorization, recipeId)



delete a recipe

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

var apiInstance = new NoobchefApi.RecipesApi();

var authorization = "authorization_example"; // String | 

var recipeId = "recipeId_example"; // String | The id of the existent recipe entity


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 
 **recipeId** | **String**| The id of the existent recipe entity | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1RecipesRecipeIdGet"></a>
# **v1RecipesRecipeIdGet**
> v1RecipesRecipeIdGet(authorization, recipeId)



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

var apiInstance = new NoobchefApi.RecipesApi();

var authorization = "authorization_example"; // String | 

var recipeId = "recipeId_example"; // String | The id of the recipe entity to retrieve


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 
 **recipeId** | **String**| The id of the recipe entity to retrieve | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

<a name="v1RecipesRecipeIdPut"></a>
# **v1RecipesRecipeIdPut**
> v1RecipesRecipeIdPut(authorization, recipeId, recipe)



update a recipe

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

var apiInstance = new NoobchefApi.RecipesApi();

var authorization = "authorization_example"; // String | 

var recipeId = "recipeId_example"; // String | The id of the existent recipe entity

var recipe = new NoobchefApi.RecipeRequest(); // RecipeRequest | Recipe data


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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **authorization** | **String**|  | 
 **recipeId** | **String**| The id of the existent recipe entity | 
 **recipe** | [**RecipeRequest**](RecipeRequest.md)| Recipe data | 

### Return type

null (empty response body)

### Authorization

No authorization required

### HTTP request headers

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

