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.
You must set up a 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 PHP implementation does not rely upon protocol buffer libraries, but
instead, relies on simple JSON serialization methods.
To download the project, execute the following command:
The entire code base consists of only three files:
.htaccess instructs apache to route all of the /v3/ requests through
bookingserver.php
bookingserver.php handles the request logic, including authentication
apiv3methods.php has the methods implementing API v3 interface
After you download the files, you should place them in a servable directory.
Note that whichever directory you put them in will become the parent to the
/v3/ directory, which you do not need to explicitly create.
Testing your Booking Server
You may download and run the
booking test utility. To install it, follow the provided installation
instructions in its README page.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-31 UTC."],[[["This is a PHP-based reference implementation of the API v3 Booking Server, requiring Apache and PHP for setup."],["The server utilizes a .htaccess file for routing, necessitating enabling AllowOverride and setting up an SSL certificate for HTTPS."],["It employs JSON serialization instead of protocol buffer libraries and can be downloaded via a provided git clone command."],["The code base comprises three files: .htaccess for routing, bookingserver.php for request handling and authentication, and apiv3methods.php for API v3 interface implementation."],["After setup, the Booking Server can be tested using the booking test utility available for download."]]],["This PHP-based reference implementation of the API v3 Booking Server requires Apache and PHP. It uses `.htaccess` for request routing, necessitating `AllowOverride` and an SSL certificate for HTTPS. The project, downloadable via `git clone`, comprises three files: `.htaccess` for routing, `bookingserver.php` for logic and authentication, and `apiv3methods.php` for the API interface. After downloading, place these files in a server directory to serve /v3/ requests. You can test it using the provided booking test utility.\n"]]