# GuestCheckinRestApi.RestaurantsControllerApi

All URIs are relative to *//gc.int.skysail.io/*

Method | HTTP request | Description
------------- | ------------- | -------------
[**addRestaurantUsingPOST2**](RestaurantsControllerApi.md#addRestaurantUsingPOST2) | **POST** /restaurants | adds a restaurant for given input. If no user with this email exists, she will be created.
[**getUsersUsingGET**](RestaurantsControllerApi.md#getUsersUsingGET) | **GET** /restaurants | list current restaurants.

<a name="addRestaurantUsingPOST2"></a>
# **addRestaurantUsingPOST2**
> &#x27;String&#x27; addRestaurantUsingPOST2(body)

adds a restaurant for given input. If no user with this email exists, she will be created.

### Example
```javascript
import GuestCheckinRestApi from 'guest_checkin_rest_api';

let apiInstance = new GuestCheckinRestApi.RestaurantsControllerApi();
let body = new GuestCheckinRestApi.AddRestaurantsCmd(); // AddRestaurantsCmd | cmd

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

### Parameters

Name | Type | Description  | Notes
------------- | ------------- | ------------- | -------------
 **body** | [**AddRestaurantsCmd**](AddRestaurantsCmd.md)| cmd | 

### Return type

**&#x27;String&#x27;**

### Authorization

No authorization required

### HTTP request headers

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

<a name="getUsersUsingGET"></a>
# **getUsersUsingGET**
> SeqRestaurantRow getUsersUsingGET()

list current restaurants.

### Example
```javascript
import GuestCheckinRestApi from 'guest_checkin_rest_api';

let apiInstance = new GuestCheckinRestApi.RestaurantsControllerApi();
apiInstance.getUsersUsingGET((error, data, response) => {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully. Returned data: ' + data);
  }
});
```

### Parameters
This endpoint does not need any parameter.

### Return type

[**SeqRestaurantRow**](SeqRestaurantRow.md)

### Authorization

No authorization required

### HTTP request headers

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

