बुकिंग सर्वर को PHP और Apache का इस्तेमाल करके लागू किया जाता है. अनुरोधों को सही तरीके से रूट करने के लिए, यह .htaccess फ़ाइल का इस्तेमाल करता है. इसलिए, पक्का करें कि डायरेक्ट्री के लिए AllowOverride चालू हो.
आपको एसएसएल सर्टिफ़िकेट सेट अप करना होगा और सभी अनुरोधों को एचटीटीपीएस पर भेजना होगा.
अगर आपके सर्वर पर पहले से एसएसएल सर्टिफ़िकेट सेट अप नहीं है, तो Apache एसएसएल/टीएलएस दस्तावेज़ देखें.
PHP में प्रोटोकॉल बफ़र लाइब्रेरी का इस्तेमाल नहीं किया जाता. इसके बजाय, इसमें JSON को सीरियलाइज़ करने के आसान तरीकों का इस्तेमाल किया जाता है.
.htaccess, Apache को /v3/ के सभी अनुरोधों को
bookingserver.php के ज़रिए रूट करने का निर्देश देता है
bookingserver.php, अनुरोध लॉजिक को मैनेज करता है. इसमें पुष्टि करने की प्रोसेस भी शामिल है
apiv3methods.php में, एपीआई v3 इंटरफ़ेस को लागू करने के तरीके मौजूद हैं
फ़ाइलें डाउनलोड करने के बाद, उन्हें किसी ऐसी डायरेक्ट्री में डालें जिससे उन्हें दिखाया जा सके.
ध्यान दें कि उन्हें जिस डायरेक्ट्री में भी रखा जाएगा वह /v3/ डायरेक्ट्री की पैरंट डायरेक्ट्री बन जाएगी. आपको इसे अलग से बनाने की ज़रूरत नहीं है.
बुकिंग सर्वर की जांच करना
बुकिंग टेस्ट की सुविधा को डाउनलोड और चलाया जा सकता है. इसे इंस्टॉल करने के लिए, इसके README पेज पर दिए गए इंस्टॉलेशन के निर्देशों का पालन करें.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (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"]]