# JiboHotelServicesApi.RestaurantServicesApi

All URIs are relative to *https://jiboinroom.accpmo.com/api/v1*

Method | HTTP request | Description
------------- | ------------- | -------------
[**restaurantReservationGet**](RestaurantServicesApi.md#restaurantReservationGet) | **GET** /RestaurantReservation | Get Restaurant Services Disponibility by time and number of diners
[**restaurantReservationPost**](RestaurantServicesApi.md#restaurantReservationPost) | **POST** /RestaurantReservation | Book Restaurant Services


<a name="restaurantReservationGet"></a>
# **restaurantReservationGet**
> [InlineResponse2004] restaurantReservationGet(hotelId, restaurantId, _date, numDiners)

Get Restaurant Services Disponibility by time and number of diners

The Restaurant Reservation endpoint returns aviliability in the *Restaurant*. 

### Example
```javascript
var JiboHotelServicesApi = require('jibo_hotel_services_api');

var apiInstance = new JiboHotelServicesApi.RestaurantServicesApi();

var hotelId = "hotelId_example"; // String | Unique ID of the hotel.

var restaurantId = "restaurantId_example"; // String | Unique ID of the restaurant.

var _date = "_date_example"; // String | Day when to know the disponibility.

var numDiners = "numDiners_example"; // String | Number of diners.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.restaurantReservationGet(hotelId, restaurantId, _date, numDiners, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelId** | **String**| Unique ID of the hotel. | 
 **restaurantId** | **String**| Unique ID of the restaurant. | 
 **_date** | **String**| Day when to know the disponibility. | 
 **numDiners** | **String**| Number of diners. | 

### Return type

[**[InlineResponse2004]**](InlineResponse2004.md)

### Authorization

No authorization required

### HTTP request headers

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

<a name="restaurantReservationPost"></a>
# **restaurantReservationPost**
> &#39;String&#39; restaurantReservationPost(hotelId, restaurantId, tableId, _date, numDiners)

Book Restaurant Services

The Restaurant Booking endpoint makes a reservation in the *Restaurant* at a given time for a certain number of people. 

### Example
```javascript
var JiboHotelServicesApi = require('jibo_hotel_services_api');

var apiInstance = new JiboHotelServicesApi.RestaurantServicesApi();

var hotelId = "hotelId_example"; // String | Unique ID of the hotel.

var restaurantId = "restaurantId_example"; // String | Unique ID of the restaurant.

var tableId = "tableId_example"; // String | Unique ID for each each table in the restaurant

var _date = "_date_example"; // String | Day when to know the disponibility.

var numDiners = "numDiners_example"; // String | Number of diners.


var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
};
apiInstance.restaurantReservationPost(hotelId, restaurantId, tableId, _date, numDiners, callback);
```

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **hotelId** | **String**| Unique ID of the hotel. | 
 **restaurantId** | **String**| Unique ID of the restaurant. | 
 **tableId** | **String**| Unique ID for each each table in the restaurant | 
 **_date** | **String**| Day when to know the disponibility. | 
 **numDiners** | **String**| Number of diners. | 

### Return type

**&#39;String&#39;**

### Authorization

No authorization required

### HTTP request headers

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

