Skip to content

Repository files navigation

SwaggerClient-php

New in this version:

  • Added Get Single restaurant operation.
  • Verify availability for a datetime / partysize.
  • Select tables with create and update booking.
  • Get tables and areas by the POS identifiers

This PHP package is automatically generated by the Swagger Codegen project:

  • API version: v1.2
  • Build package: io.swagger.codegen.v3.generators.php.PhpClientCodegen

Requirements

PHP 5.5 and later

Installation & Usage

Composer

To install the bindings via Composer, add the following to composer.json:

{
"repositories": [
{
"type": "git",
"url": "https://github.com/GIT_USER_ID/GIT_REPO_ID.git"
}
],
"require": {
"GIT_USER_ID/GIT_REPO_ID": "*@dev"
}
}

Then run composer install

Manual Installation

Download the files and include autoload.php:

require_once('/path/to/SwaggerClient-php/vendor/autoload.php');

Tests

To run the unit tests:

composer install
./vendor/bin/phpunit

Getting Started

Please follow the installation procedure and then run the following:

<?phprequire_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = newSwagger\Client\Api\AreaApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client()
);
$restaurant_uid = "restaurant_uid_example"; // string | The unique identifier of the restaurant.$version = "version_example"; // string | try {
$result = $apiInstance->areaGet($restaurant_uid, $version);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling AreaApi->areaGet: ', $e->getMessage(), PHP_EOL;
}
$apiInstance = newSwagger\Client\Api\AreaApi(
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.// This is optional, `GuzzleHttp\Client` will be used as default.newGuzzleHttp\Client()
);
$restaurant_uid = "restaurant_uid_example"; // string | The unique identifier of the restaurant.$area_id = 56; // int | $version = "version_example"; // string | try {
$result = $apiInstance->areaGetById($restaurant_uid, $area_id, $version);
print_r($result);
} catch (Exception$e) {
echo'Exception when calling AreaApi->areaGetById: ', $e->getMessage(), PHP_EOL;
}
?>

Documentation for API Endpoints

All URIs are relative to /

ClassMethodHTTP requestDescription
AreaApiareaGetGET /api/v{version}/{restaurantUid}/areasGet the list of areas of the restaurant
AreaApiareaGetByIdGET /api/v{version}/{restaurantUid}/areas/{areaId}Get the details of a specific area
AvailabilityApiavailabilityGetAvailabilityForDaysGET /api/v{version}/{restaurantUid}/availability/days/{from}/{days}/{numberOfPeople}/{language}Get days availability
AvailabilityApiavailabilityGetAvailabilityForMonthGET /api/v{version}/{restaurantUid}/availability/month/{month}/{year}/{numberOfPeople}/{language}Get availability of month
AvailabilityApiavailabilityGetFirstDateTimeGET /api/v{version}/{restaurantUid}/availability/first/{numberOfPeople}/{language}Get first available date
AvailabilityApiavailabilityGetOpenTimesForDayGET /api/v{version}/{restaurantUid}/availability/open/{date}Get opening times
AvailabilityApiavailabilityGetTimesForDayGET /api/v{version}/{restaurantUid}/availability/day/{date}/{numberOfPeople}/{language}Get times of a day
AvailabilityApiavailabilityIsAvailableGET /api/v{version}/{restaurantUid}/availability/available/{dateTime}/{numberOfPeople}Verify availability
BookingApibookingCancelDELETE /api/v{version}/{restaurantUid}/booking/{uid}Cancel booking
BookingApibookingCheckInPUT /api/v{version}/{restaurantUid}/booking/checkin/{uid}Check-in booking
BookingApibookingCheckOutPUT /api/v{version}/{restaurantUid}/booking/checkout/{uid}Check-out booking
BookingApibookingCreatePOST /api/v{version}/{restaurantUid}/bookingCreate booking
BookingApibookingCreateMessagePOST /api/v{version}/{restaurantUid}/booking/{uid}/messageCreate user message
BookingApibookingCreateMessageToUserPOST /api/v{version}/{restaurantUid}/booking/{uid}/messagetouserCreate restaurant message
BookingApibookingGetBookingByExternalReferenceIdGET /api/v{version}/{restaurantUid}/booking/external/{source}/{externalReferenceId}Get a booking using the external source and reference ID.
BookingApibookingGetByUidGET /api/v{version}/{restaurantUid}/booking/{uid}Get booking
BookingApibookingGetFutureBookingsGET /api/v{version}/{restaurantUid}/booking/{from}/{days}Get future bookings
BookingApibookingGetMessagesGET /api/v{version}/{restaurantUid}/booking/{uid}/messageGet messages of booking
BookingApibookingUpdatePUT /api/v{version}/{restaurantUid}/booking/{uid}Update booking
ConfigurationApiconfigForDayGET /api/v{version}/{restaurantUid}/configuration/day/{date}Get configuration of a day
ConfigurationApiconfigForDayAndPeopleGET /api/v{version}/{restaurantUid}/configuration/{dateTime}/{numberOfPeople}Get configuration
ConfigurationApiconfigsBatchPOST /api/v{version}/{restaurantUid}/configuration/batchGet batch of configurations
ConfigurationApiconfigsForMonthGET /api/v{version}/{restaurantUid}/configuration/month/{year}/{month}Get configuration of month
ProductApiproductTicketGetTicketsGET /api/v{version}/{restaurantUid}/product/ticketGet tickets
ProductApiproductTicketGetVouchersGET /api/v{version}/{restaurantUid}/product/voucherGet gift vouchers
RestaurantApiappRestaurantSettingsGET /api/v{version}/restaurants/{restaurantUid}/appsettingsGets app settings of the restaurant. This can only be called by Apps.
RestaurantApirestaurantGetGET /api/v{version}/restaurantsGet restaurant list
RestaurantApirestaurantGetByUidGET /api/v{version}/restaurants/{restaurantUid}Get restaurant
RestaurantApirestaurantGetReviewSummaryGET /api/v{version}/restaurants/{restaurantUid}/reviewsummary/{dateFrom}Get reviews summary
RestaurantApirestaurantGetReviewsGET /api/v{version}/restaurants/{restaurantUid}/reviewsGet reviews
TableApitableGetGET /api/v{version}/{restaurantUid}/tablesGet the list of active tables in the restaurant
TableApitableGetByAreaIdGET /api/v{version}/{restaurantUid}/tables/area/{areaId}Get the list of active tables in the specified area
TableApitableGetByIdGET /api/v{version}/{restaurantUid}/tables/{tableId}Get the details of a specific table

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages