Serwer rezerwacji jest implementowany za pomocą PHP i Apache. Aby prawidłowo kierować żądania, używa pliku.htaccess, więc upewnij się, że dla katalogu włączona jest opcja AllowOverride.
Musisz skonfigurować certyfikat SSL i upewnić się, że wszystkie żądania są przesyłane przez protokół HTTPS.
Jeśli na serwerze nie ma jeszcze skonfigurowanego certyfikatu SSL, możesz zapoznać się z dokumentacją Apache SSL/TLS.
Implementacja w PHP nie korzysta z bibliotek buforów protokołów, ale z prostych metod serializacji JSON.
Plik .htaccess instruuje serwer Apache, aby przekierowywał wszystkie żądania /v3/ przez plik bookingserver.php
bookingserver.php obsługuje logikę żądania, w tym uwierzytelnianie
Plik apiv3methods.php zawiera metody implementujące interfejs API w wersji 3.
Po pobraniu plików umieść je w katalogu serwowania.
Pamiętaj, że katalog, do którego je umieścisz, stanie się nadrzędnym katalogu /v3/, którego nie musisz tworzyć w sposób jawny.
Testowanie serwera rezerwacji
Możesz pobrać i uruchomić narzędzie do testowania rezerwacji. Aby go zainstalować, postępuj zgodnie z instrukcjami podanymi na stronie README.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-05-26 UTC."],[[["This is a PHP-based reference implementation of the API v3 Booking Server, requiring Apache and PHP for setup."],["The server utilizes JSON serialization and an .htaccess file for routing, demanding HTTPS with an SSL certificate for security."],["Download the project using `git clone https://maps-booking.googlesource.com/php-maps-booking-rest-server-v3-skeleton` and place the files in a servable directory."],["The core logic resides in three files: .htaccess for routing, bookingserver.php for request handling and authentication, and apiv3methods.php for API v3 implementation."],["Test the server using the booking test utility, downloadable from `https://maps-booking.googlesource.com/maps-booking-v3/`."]]],["This PHP-based reference implementation of the API v3 Booking Server requires Apache and PHP. It uses `.htaccess` for request routing, necessitating `AllowOverride` and HTTPS via an SSL certificate. The implementation utilizes JSON instead of protocol buffers. The codebase includes `.htaccess`, `bookingserver.php` (request logic), and `apiv3methods.php` (API v3 methods). Download via `git clone`, place files in a servable directory, and then use a booking test utility for testing.\n"]]