commit | 2c4b1a87db18a443f0441c31d43206633cd55042 | [log] [tgz] |
---|---|---|
author | root <root@google.com> | Mon Jan 14 10:45:24 2019 -0500 |
committer | root <root@google.com> | Mon Jan 14 10:45:24 2019 -0500 |
tree | b9951f385ab62457bdcaee8ded45d5c1ca6bab8f |
PHP skeleton for Booking Server API v3
This is a reference implementation of API v3 Booking Server based on PHP
Requires an installation of
The Booking Server is implemented using PHP and Apache. To properly route the requests it makes use of the .htaccess file so make sure that AllowOverride is enabled for the directory.
It is required that you implement an SSL certificate and have all requests served over https. If your server does not already have an SSL certificate setup you can review the Apache SSL/TLS documentation.
The implementation is also not using protocol buffer libraries, but instead relies on simple JSON serialization methods.
To download the project execute the following command:
git clone https://maps-booking.googlesource.com/php-maps-booking-rest-server-v3-skeleton
The entire code base consists of only three files:
After you downloaded the files you should place them in a servable directory. Note that whichever directory you put them in will automatically be the parent to the /v3/ folder (which you do not need to create).
For instructions on how to test your booking server refer to the booking server testing section of our documentation. It is reccomended that you download and run the booking test utility. To install it, follow the provided installation instructions in its README page.