A standardized API interface construction method, device, equipment and storage medium
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- TRAVELSKY TECHNOLOGY LIMITED
- Filing Date
- 2026-04-29
- Publication Date
- 2026-07-10
Smart Images

Figure CN122372653A_ABST
Abstract
Description
Technical Field
[0001] This application belongs to the field of data processing technology, and specifically relates to a standardized API interface construction method, apparatus, device and storage medium. Background Technology
[0002] With the rapid development of digitalization in the hotel industry, more and more hotel suppliers are connecting to API interfaces. For example, hotel groups are directly connecting with various distribution channels such as OTAs, large wholesalers, and global distributors (GDS) to achieve integrated online sales operations, including real-time synchronization of room availability and prices, booking, and cancellation. This API access enables efficient data exchange between hotel suppliers and hotel systems.
[0003] However, the lack of standardized interface protocols among hotel suppliers (e.g., some use JSON, some SOAP) necessitates the repeated development of adaptation modules for hotel platform sales integration, resulting in high development and integration costs. Significant differences in data formats (e.g., inconsistent room type names, price units, and inventory status fields) easily lead to ambiguity during integration. Integration efficiency is low; adding new suppliers requires manual setting and matching of corresponding parameters, which is time-consuming. Furthermore, the lack of dynamic verification mechanisms makes it difficult to promptly detect supplier data anomalies (e.g., incorrect pricing, insufficient inventory).
[0004] The current state of multiple supply chains in the hotel industry means that "point-to-point" connections with a single supplier are no longer sufficient to support large-scale business expansion and cross-industry collaboration. To enable distributors to access more diversified resources and products and meet the diverse needs of customers, thereby improving customer satisfaction, hotel suppliers and distributors urgently need more efficient connections and data exchange to provide customers with one-stop solutions. Summary of the Invention
[0005] To address the aforementioned technical problems, this application provides a standardized API interface construction method, apparatus, device, and storage medium.
[0006] To achieve the above objectives, this application provides the following technical solution: A standardized API interface construction method for hotel multi-supplier resource integration scenarios, the method comprising: The analysis results were obtained by analyzing the types of suppliers and the entire business field; Based on the analysis results, the supplier security certification system and the platform's unified security management system are adapted and connected to build a data interaction link between the platform and the supplier. Based on the aforementioned data interaction link, bidirectional interface conversion is performed across all business scenarios, and a standardized API direct connection module for suppliers is constructed. The direct connection modules are incorporated into various systems of the platform, and after full-link joint debugging and verification, they are integrated and packaged into a standardized API interface for the integration of hotel multi-supplier resources.
[0007] Based on the same inventive concept, this application also provides a standardized API interface construction device for hotel multi-supplier resource integration scenarios, the device comprising: The data analysis module is configured to analyze supplier types and the entire business field to obtain analysis results; The data interaction link construction module is configured to adapt and connect the supplier security authentication system and the platform's unified security management system based on the analysis results, and to build a data interaction link between the platform and the supplier. The API direct connection module building module is configured to perform bidirectional interface conversion across all business scenarios based on the data interaction link, and to build a supplier-standardized API direct connection module. The standardized API interface generation module is configured to integrate the direct connection modules into various systems of the platform. After full-link joint debugging and verification, the modules are aggregated and encapsulated in an integrated manner to obtain a standardized API interface for the integration of hotel multi-supplier resources.
[0008] Based on the same inventive concept, this application also provides an electronic device, including: a memory and a processor; the processor is used to read and execute a computer program stored in the memory to implement the aforementioned standardized API interface construction method.
[0009] Based on the same inventive concept, this application also provides a computer storage medium storing computer-executable instructions, which, when executed, implement the aforementioned standardized API interface construction method.
[0010] Compared with the prior art, this application has the following advantages: Only one standardized access layer needs to be maintained. When new suppliers connect, they can directly reuse the existing framework, reducing redundant development and lowering access development costs. Unified monitoring of the interface status of all suppliers (such as call success rate and response time) eliminates the need to maintain separate monitoring tools for different suppliers, simplifying operation and maintenance complexity and improving troubleshooting efficiency. When the interface system is upgraded (such as core system iteration or server replacement), only the standardized access layer needs to be updated, eliminating the need to coordinate with each supplier to modify the interface logic, reducing adaptation costs and cross-team communication costs. Clear interface specifications reduce collaboration problems caused by incorrect access judgments. Updates are based on large amounts of data from upstream suppliers, and will be continuously maintained and updated in the future, ensuring the accuracy of hotel information. Combined with scheduled updates and message notification technology, real-time data updates and synchronization are achieved, ensuring the latest and real-time nature of hotel static information, room rates, and other data, improving cross-supplier collaboration efficiency. Standardized access allows data from multiple suppliers to be imported into the platform system in a unified format, providing a complete data foundation for data analysis (supply chain optimization), supporting diversified product operations. The standardized supplier access system can be directly reused in subsequent operations to expand resource links without the need to reconstruct the underlying interface architecture, supporting "rapid trial and error and rapid replication" of business, with a short time cycle and stronger adaptability.
[0011] This application solves the technical problems in the existing technology, such as inconsistent interface protocols and data formats among numerous hotel suppliers, high access development costs and low efficiency, lack of dynamic verification mechanisms, and inability of point-to-point connections to support large-scale business expansion.
[0012] Other features and advantages of this application will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the application. The objectives and other advantages of this application may be realized and obtained by means of the structures pointed out in the description, claims and drawings. Attached Figure Description
[0013] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0014] Figure 1 A flowchart illustrating the method provided in the embodiments of this application; Figure 2 This is a schematic diagram of the overall architecture of an embodiment of this application; Figure 3 This is a schematic diagram of the overall architecture of an embodiment of this application, and a schematic diagram of the supplier direct connection sub-project module; Figure 4 This is a schematic diagram of the functional modules of an embodiment of the standardized API interface construction apparatus of this application; Figure 5 This is a schematic diagram of the structure of an electronic device according to an embodiment of this application. Detailed Implementation
[0015] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.
[0016] To address the shortcomings of existing technologies, refer to Figure 1 This application discloses a standardized API interface construction method for hotel multi-supplier resource integration scenarios, the method comprising: Step S10: Analyze the types of suppliers and the entire business field to obtain the analysis results; In some specific embodiments, the analysis results include: docking differences, mapping lists, and adaptation schemes. Step S10 includes: Determine the supplier's information and business logic based on the supplier's type; By fully dissecting the supplier's data and business logic from a technical perspective, we can identify the points of divergence between the hotel platform's standard specifications and the supplier's technical specifications. Based on the platform's unified interface specifications and data dictionary, each supplier's full business scenario is compared and matched to obtain a mapping list of supplier fields and platform standard fields under the full business scenario, an adaptation scheme for supplier non-standard business rules and platform standard rules, and a personalized requirement compatibility adaptation scheme for supplier non-standard business logic.
[0017] In this embodiment, refer to Figure 2 Given the current multi-supplier landscape in the hotel industry, integrating with multiple suppliers without a unified standard API requires complex interface development and maintenance with each supplier individually, resulting in high costs, time consumption, and low efficiency. A unified, standardized API interface enables real-time data synchronization between hotels and their upstream and downstream partners, building a standardized and efficient hotel distribution business ecosystem.
[0018] By analyzing the business scenarios and interface information of mainstream hotel suppliers (such as OTAs, wholesalers, hotel groups, etc.), we extract commonalities and accommodate individual differences to form a standardized interface system.
[0019] Based on the analysis of the supplier's business scenarios and interface information, the specific implementation is as follows: Complete a comprehensive analysis of the supplier's technology and business, identify differences from the platform's standards and specifications, and output a feasible docking mapping list to provide a standard basis for subsequent supplier certification docking and interface conversion development.
[0020] 1. Confirmation of supplier basic information and business logic: First, we completed business and technical coordination with the supplier to clarify the supplier's basic information: supplier type (e.g., hotel group) and scope of business instructions. The scope of business instructions includes: hotel basic information inquiry, room rate and availability inquiry, order creation, order cancellation, order inquiry, etc., covering the entire hotel business process.
[0021] 2. Interface technical specification breakdown and benchmarking: By combining supplier information and business logic, a full breakdown of the technical aspects was completed. The breakdown included: Interface communication protocol breakdown: The supplier uses HTTPS as the communication protocol, JSON as the data exchange format, and GET as the interface request method; Interface specification differences breakdown: The core differences between the supplier's interface request header specifications, response structure, status code definition, error code system and the platform's unified specifications; Interface restriction rules breakdown: Supplier-provided interface call frequency limits, pagination rules, concurrency limits, and timeout requirements; clarify the technical differences with hotel platform standards and specifications, and mark the core nodes that require protocol conversion and format conversion.
[0022] 3. Benchmarking analysis of differences between business scenarios and fields: Based on the platform's unified interface specifications and data dictionary, the platform benchmarks all business scenarios of suppliers one by one, covering the entire business process, including hotel basic information, room type information, price and inventory, order creation, order cancellation, and order inquiry.
[0023] Field Benchmarking: In each business scenario, analyze the differences in naming, data type, format, and value range between supplier interface fields and platform standard fields to form a detailed mapping of supplier fields to platform fields; Business logic benchmarking: Analyze the differences between the supplier's business rules and the platform's standard rules, such as price calculation logic, cancellation policy rules, inventory status definition, and order status flow rules, and formulate a non-standard business rule adaptation solution; Personalized requirement tagging: Tag supplier-specific fields and non-standard business logic to clarify compatibility and adaptation solutions and avoid information loss or business logic deviations.
[0024] Based on the above differences and information, focusing on core differences such as interface technical specifications, business scenarios and fields, we conducted a classification and sorting of differences, quantitative annotation and formulation of adaptation and conversion rules. Combined with the platform's unified interface specifications and data dictionary, we obtained a full-dimensional mapping list of suppliers and platform interfaces that can be directly implemented, standardized access documents for direct hotel connection to supplier platforms, a table of corresponding conversion nodes for core differences, and preliminary adaptation solutions for non-standard business logic and personalized needs.
[0025] It should be noted that the platform in this application embodiment is a hotel distribution platform.
[0026] Step S20: Based on the analysis results, adapt and connect the supplier security certification system with the platform's unified security management system to build a data interaction link between the platform and the supplier. In some specific embodiments, step S20 includes: Based on the differences in the analysis results, the security authentication methods and core authentication rules of the supplier interface are dissected to obtain a supplier-specific security authentication adaptation solution that is fully compatible with the unified security management system of the platform. Based on the supplier-specific security authentication adaptation scheme, a data interaction link is built between the platform and the supplier.
[0027] In this embodiment, we continue to refer to... Figure 2 Based on the analysis results, the supplier security certification system is adapted and connected with the platform's unified security management system to establish a reliable, stable, and compliant data interaction link between the platform and the supplier.
[0028] Based on the core differences identified in the analysis results, the security authentication methods and core authentication rules of the supplier interfaces were disassembled to confirm the adaptation scheme with the platform's unified security management system. The authentication logic was encapsulated and developed in a configurable manner, abandoning the hard-coded development model. All core authentication parameters were encapsulated as configurable items and stored in a supplier-specific adaptation template. This development included the development of a general signature generation component, key encryption storage configuration, and SSL certificate configuration adaptation. End-to-end security and compliance adaptation was implemented, uniformly adopting HTTPS as the transmission protocol and completing SSL certificate verification adaptation. Sensitive data was encrypted and anonymized according to both platform and supplier rules. For cross-border suppliers, compliance adaptation for cross-border data transmission was completed. Based on the principle of least privilege, permission control and end-to-end logging were implemented. Dedicated access permissions were configured for the supplier adaptation module, and core sensitive authentication information was encrypted and stored with full operational traceability. This resulted in a supplier-specific security authentication adaptation scheme that is fully compatible with the platform's unified security management system.
[0029] By integrating standardized connection management measures such as connection pool configuration, timeout retries, and anomaly classification, and combining them with the aforementioned supplier-specific security authentication adaptation solutions, a reliable, stable, and compliant data interaction link is built between the platform and the supplier.
[0030] Specifically, 1. Confirmation of core authentication rules and adaptation scheme: Based on the authentication rules in the supplier interface document, clarify the security authentication method adopted by the supplier. The core authentication rules include token acquisition, signature algorithm, encryption rules, token validity period, refresh mechanism, and error handling rules for authentication failure. Confirm the adaptation scheme with the platform security system.
[0031] 2. Configurable Encapsulation and Development of Authentication Logic: In the adaptive conversion layer, the configurable encapsulation of the supplier's authentication logic is completed. This abandons the traditional hard-coding development model, encapsulating all core authentication parameters as configurable items and storing them in the supplier's exclusive adaptation template. Specific implementation details are as follows: ① For interface signature authentication: Based on the supplier's required signature algorithm MD5, a general signature generation component is developed. The signature rules (parameter sorting method, concatenation rules, key concatenation position, encryption encoding format) are configurable. Each time an interface request is made, the signature of the request parameters is automatically generated according to the supplier's rules and automatically filled into the request header or request parameters. ② For key authentication: The AccessKey and SecretKey provided by the supplier are encrypted and stored, configured in the adaptation template. During interface requests, the authentication information is automatically encapsulated according to the rules. ③ For two-way authentication: The configuration and adaptation of SSL certificates are completed, enabling automatic loading and verification of certificates to ensure the security of the transmission link.
[0032] 3. End-to-end security and compliance implementation: HTTPS protocol is uniformly adopted as the transmission protocol between the platform and suppliers, and SSL certificate verification and adaptation are completed; for sensitive data such as resident ID numbers, mobile phone numbers, and payment information, encryption processing is implemented during transmission in accordance with the platform's unified de-identification and encryption rules, while adapting to the sensitive information encryption rules required by suppliers to ensure the security of two-way data transmission; for cross-border suppliers, compliance adaptation for cross-border data transmission is completed simultaneously to meet relevant regulatory requirements.
[0033] 4. Access Control and Full-Link Log Implementation: Based on the platform's principle of least privilege, exclusive access permissions are configured for the supplier's adaptive interface conversion and adaptation module, restricting the module to access only the corresponding supplier's interface resources and business data to avoid abuse of permissions. For core sensitive information such as authentication keys and tokens, encryption is used for storage, and the modification and update of keys are fully traceable, realizing the full lifecycle controllability and traceability of authentication information.
[0034] The adaptive interface conversion and adaptation module serves as a "standardized hub" between the hotel platform system and multi-vendor systems. To break down the barriers of heterogeneity among different vendors, reduce the need for customized interfaces from multiple vendors, and minimize development and maintenance workload, a unified interface standard and configurable adaptation mechanism are established. This replaces the traditional model of developing customized interfaces for a single vendor, fundamentally reducing system integration development costs, simplifying maintenance processes, and improving the efficiency of new vendor integration.
[0035] For each supplier, we design configurable adaptation templates, extract reusable logic, deeply analyze the commonalities of interfaces from different suppliers, and abstract recurring logic such as protocol parsing, data validation, format conversion, and exception handling into reusable general components. This enables the conversion between the platform's standard API interface and the supplier's interface, avoiding redundant development and improving access efficiency.
[0036] Configure supplier adaptation templates to create exclusive adaptation templates for each supplier. Through standard configuration, define mapping rules such as converting "platform standard protocol" to "supplier interface protocol", "platform standard data format" to "supplier data format", and "platform standard field" to "supplier field".
[0037] When the platform interacts with suppliers, the adaptive interface conversion and adaptation module first identifies the other party's interface protocol and data format through the adaptation template, and then calls the corresponding reusable components to parse the protocol and read the data. Based on the field mapping rules in the adaptive interface conversion and adaptation module, non-standard data is converted into standardized data that conforms to the platform's data dictionary. Following the platform's unified interface specifications, the standardized data is then transmitted to the core business system. Conversely, when the platform pushes data to suppliers, the module executes the reverse conversion process to ensure that suppliers can receive and parse it correctly.
[0038] This adaptation and connection process is a core and crucial step in building a data interaction link between the platform and the supplier, but it is not the entire process of building this data interaction link. The specific logic and technical solution are explained below: The compatibility and integration of supplier security certification systems with the platform's unified security management system is the foundation and core prerequisite for building a trustworthy, compliant, and secure data exchange link. The aforementioned methods essentially establish a secure access and transmission protection mechanism for the data transmission link between the platform and suppliers, thus solving the problem of secure and compliant data transmission.
[0039] The complete platform-supplier data interaction link, in addition to the aforementioned security authentication and matching connections, also incorporates standardized supplier connection management measures (such as connection pool configuration, timeout retries, exception classification and handling, and parallel request scheduling). Only the combination of these two elements constitutes a complete and usable platform-supplier data interaction link.
[0040] Step S30: Based on the data interaction link, perform bidirectional interface conversion for all business scenarios and build a supplier standardized API direct connection module; In some specific embodiments, step S30 includes: Based on the hotel distribution business scenario, the hotel standardized interface is divided into multiple modules; Each module undergoes bidirectional interface standardization conversion to obtain standardized modules. Heterogeneous raw business data from the supplier side is obtained based on the aforementioned data interaction link; The heterogeneous raw business data is input into the corresponding standardization module, and the data is standardized and transformed according to the standardization conversion rules of the standardization module to obtain platform standard format data; Based on the platform's standard format data, and combined with security authentication configuration, exception handling strategy, request scheduling rules, and full-link log tracking requirements, an integrated logical encapsulation is performed. Furthermore, a multi-dimensional data mapping relationship library and dynamic synchronization rules are integrated to obtain a supplier-standardized API direct connection module.
[0041] In this embodiment, we continue to refer to... Figure 2 Based on the platform's unified specifications and field mapping details, the adaptive conversion layer completes bidirectional interface conversion for all business scenarios, ultimately forming a standardized API direct connection module specific to the supplier. This enables seamless bidirectional conversion between supplier interface information and platform standard interface information. All conversion rules are maintained in a configurable manner and encapsulated in the supplier's dedicated adaptation template.
[0042] Reference Figure 3 Based on the hotel distribution business scenario, the standardized hotel interface is divided into four modules: hotel basic information module, hotel inventory and price module, order module and order management module, covering the entire business process.
[0043] For each module, a bidirectional standardization conversion of the interface is performed to obtain the standardization conversion rules for each module. The bidirectional standardization conversion of the interface includes field naming and format conversion, semantic and value standardization conversion, non-standard field compatibility processing, and encoding system standardization conversion.
[0044] 1. Standardized conversion of hotel basic information module (hotel / room type basic information): To address the issues of heterogeneous fields, inconsistent naming, and non-standard formats in hotel and room type information and regional coding systems from different suppliers, a unique two-way mapping relationship between supplier codes and platform standard codes is established, completing the standardized two-way conversion of static basic hotel / room type data.
[0045] ① Hotel basic information dimension standard fields: supplier hotel ID, hotel name, brand name, hotel star rating, contact information, detailed address and hotel facilities, etc.; room type basic information dimension standard fields: platform room type ID, hotel ID, room type name, bed type information, room area, room type facilities and room type pictures, etc.
[0046] Based on the field mapping relationship, the bidirectional mapping rules from supplier fields to platform standard fields are sorted out in the adaptation template, and non-standard fields and semantic differences are marked.
[0047] Field naming and format conversion: Automatically map the personalized field names of the supplier interface to the platform's standard field names. For example, the supplier's hotelName is uniformly converted to the platform's standard field hotel name htlName. Examples of standard fields for each platform are shown in Table 1.
[0048] Table 1
[0049] Semantic and Value Standardization Conversion: To address the semantic ambiguity issue of synonyms, a semantic mapping rule base is established. For example, the supplier's five-star and deluxe types are uniformly mapped to the platform's standard 5S, the supplier's king room, super king room, and zero-pressure king room are uniformly mapped to the platform's standard king room type, and the supplier's non-standard facility tags are uniformly mapped to the platform's preset hotel facility standard codes. Non-standard field compatibility handling: For the supplier's personalized and unique fields, they are mapped to the platform's standard extended fields for storage, ensuring that information is not lost and the platform's core data structure is not damaged; ② Standardized conversion of national and urban regional systems: country ID, city ID, administrative region code, Chinese name, pinyin abbreviation, province, latitude and longitude, etc.
[0050] Based on a unified and standardized API interface specification for multiple hotel suppliers, a unique national and city standard coding benchmark library has been built on the platform. This library is created according to standards such as two-letter country codes, three-letter city codes, Chinese names, English names, and administrative region standard codes. It covers major countries and regions globally, prioritizing precise coding matching: Supplier-returned country and city codes are matched precisely with the platform's standard coding library, directly mapping them to the platform's standard country / city codes and names. Fuzzy name matching: For scenarios without unified coding, text similarity matching is performed using standard names and common aliases. For example, the supplier's "Shanghai" is matched with the platform's standard city code SHA. For cross-border scenarios, a two-way mapping between English country / city names and Chinese standard names is achieved. Supplier landmark latitude and longitude are uniformly converted to the platform's standardized Gaode coordinate system. An anomaly handling mechanism: For regional information that fails to match, it is automatically marked as awaiting manual review, triggering an anomaly warning and simultaneously recording it in the anomaly log, preventing erroneous data from entering the business process and avoiding hotel resource aggregation errors caused by regional information mismatches.
[0051] ③ Standardized conversion of hotel codes: Based on the platform's hotel master data, the platform assigns a unique, fixed, and unchangeable platform standard hotel ID to each compliant hotel. This ID is the platform's unique primary key and is used throughout the entire business process of hotel information display, price and inventory inquiry, order creation, and order fulfillment.
[0052] A bidirectional mapping database for hotel codes is established. Based on the standardized hotel and geographic information already transformed in the previous steps, a multi-dimensional matching algorithm is used to match each supplier's hotel code with a corresponding platform standard ID. The specific implementation logic is as follows: Matching algorithm rules: The data is semantically encoded using the BERT model to extract key semantic features; then, the potential relationships between features are further analyzed using the Transform architecture. For example, a multi-dimensional weighted algorithm combining hotel name text similarity, precise address matching, latitude and longitude distance verification, contact information matching, and brand matching is used to calculate the matching degree between supplier hotels and platform hotels. The matching degree is determined by the rating, and a mapping relationship is automatically established. Manual review mechanism: For hotels with low matching degrees, a manual review process is automatically triggered, where operations personnel confirm the matching relationship to avoid mismatches and omissions; For hotels with no similar matches, they are marked as newly added hotels on the platform, and after information review, they are added to the platform's master data pool to establish a mapping relationship; Finally, a unique bidirectional mapping database of supplier hotel codes corresponding to platform standard hotel IDs is formed and stored in the platform mapping database.
[0053] 2. Implementation of standardized conversion of hotel inventory and pricing modules: This addresses the heterogeneity of pricing structures, inventory identification, and policy rules among different suppliers, enabling standardized two-way conversion of core dynamic operational data for hotels, and ensuring the real-time nature, accuracy, and consistency of pricing, inventory, and policy data.
[0054] Standardized conversion of hotel price / inventory information: When obtaining price and room availability data from suppliers, the system automatically performs standardized conversion. Supplier data is broken down into price-related data (room fees, taxes, service fees) and room availability-related data (available availability, inventory). This data is uniformly converted into platform-standard fields such as net price (excluding tax), total price (including tax), tax amount, room availability, and inventory. Supplier-specific room availability identifiers (such as those indicating room closure or no availability) are uniformly mapped to platform-standard available / unavailable room availability enumeration values. Simultaneously, supplier fields such as minimum / maximum stay days, overbooking rules, and occupancy restrictions are converted to platform-standard formats to ensure consistency in inventory and room availability information. Fields such as price validity period, breakfast quantity, and occupancy restrictions are standardized to platform-standard formats and value specifications. The system also adapts to differences in supplier price calculation logic to ensure unambiguous and unbiased price information conversion. A conversion rule is implemented for platform-to-supplier hotel price query requests. Platform-standard price and room availability query parameters (check-in / check-out date, room type code, number of guests, currency type) are converted into the request format and field naming required by the supplier interface to ensure that suppliers can accurately return price data based on the corresponding conditions.
[0055] Standardized conversion of booking policies: Suppliers' unstructured and personalized cancellation rules are converted into standardized structured data for the platform. Decomposition and mapping rules are configured, breaking down supplier cancellation policies into platform-standard structured fields such as cancellation deadlines, advance notice days, penalty rates, cancellation eligibility, and special restrictions. For example, the supplier's "Free cancellation 3 days before check-in, 100% room rate charge for cancellations within 3 days, no cancellations on holidays" is converted into a multi-node standardized cancellation rule, unifying time formats, penalty calculation rules, and currency standards. Simultaneously, noshow rules and order change rules are also standardized to ensure the business logic of cancellation policies is accurate and to avoid booking disputes.
[0056] 3. Standardized conversion implementation of the order module (booking / cancellation): Achieving bidirectional conversion between standardized order creation / cancellation requests on the platform and supplier interfaces is a core aspect of order transactions. Ensuring that all fields of booking / cancellation information are complete, error-free, and correctly identifiable by suppliers guarantees a smooth and accurate order creation / cancellation process.
[0057] ① Order Creation: Clarify the conversion benchmark and rules. Based on the defined order interface specifications and unified order data dictionary, clarify the full field specifications of the platform standard order creation request and order response, covering five dimensions: basic order information, guest information, product information, price and payment information, and additional information. Clarify the differences between the fields, formats, business rules of the supplier booking interface and the platform standards, and form a two-way mapping list of order fields.
[0058] Configure bidirectional conversion rules: For booking information conversion, when a user initiates a booking request on the platform, the platform converts the parameters in the order creation request sent to the supplier. Configure full-field mapping rules in the adaptation template, and the following conversion logic will be automatically executed when the platform initiates an order creation request: Order identification conversion: Convert the unique order number within the platform into an external order number or channel reference number required by the supplier to ensure full traceability of the order; Product information conversion: Convert the platform's standard hotel ID, room type ID, and pricing plan ID into the corresponding supplier's hotel code, room type code, and pricing plan code, and simultaneously convert core product parameters such as check-in / check-out dates, number of rooms booked, and bed type requirements; Guest information conversion: Convert the platform's standard guest name, ID type, ID number, and contact information according to the format and field naming requirements of the supplier interface, and adapt to personalized requirements such as splitting Chinese and English names and mapping ID type codes; Price and payment information conversion: Convert order amount, currency type, payment type (prepayment / cash payment), and payment information into the format required by the supplier and match the supplier's payment rules; Channel and Additional Information Conversion: The platform's channel identifiers, booking sources, and special guest requirements (non-smoking rooms, extra beds, remarks) are converted into a format recognizable by the supplier interface, while simultaneously supplementing relevant compliance requirements. After conversion, the information is automatically packaged into a request message that conforms to the supplier interface requirements, authenticated through the security authentication module, and then sent to the supplier's booking interface.
[0059] For the order creation response results returned by the supplier, configure standardized conversion rules: convert the supplier's internal order number, reservation confirmation number, order status, confirmation time, failure reason and other fields returned by the supplier into the platform's standard order response fields; map the supplier's personalized order status code and error code to the platform's unified order status enumeration value and standard error code system to ensure that the platform's core system can correctly identify and process order results and update the platform's order status synchronously.
[0060] ② Implementation of standardized conversion of cancellation information: Clarify the conversion benchmark and rules. Based on the defined order management interface specifications, unified order status dictionary, and standard error code system, clarify the standard field specifications for platform order cancellation requests and cancellation responses, sort out the differences between the supplier's cancellation interface request parameters, response format, cancellation rules and the platform, and form a cancellation information mapping list.
[0061] The platform configures conversion rules for cancellation requests in the adaptation template. When a user initiates an order cancellation request on the platform, the platform sends a cancellation request to the supplier, automatically executing the following conversion logic: The platform order number, supplier order number, and booking confirmation number are converted to their corresponding values to ensure the supplier accurately identifies the target order; the cancellation reason and cancellation applicant information are converted into field formats and coding standards required by the supplier, fully conveying the core information of the cancellation request, encapsulating it into a cancellation request message that meets the supplier's requirements, and sending it to the supplier's cancellation interface. For the cancellation response returned by the supplier, standardized conversion rules are configured: Successful scenario: The cancellation success status, cancellation confirmation number, penalty amount, and refund information returned by the supplier are converted into standard platform fields, and the platform order status is synchronously updated to CAN cancelled, recording the cancellation-related information; Failure scenario: The cancellation failure reason and error code returned by the supplier are converted into a unified platform error code and standardized prompt information, mapping to the corresponding order status, synchronously triggering the corresponding platform exception handling process, and informing the user of the cancellation failure reason.
[0062] 4. Standardization and implementation of the order management module: It enables bidirectional standardized conversion between order query requests and query results, covering all scenarios including single order details query, batch synchronization of order status, and order list query, ensuring consistency of order information between the platform and suppliers, and completing the entire order process management.
[0063] The conversion benchmark and scenario analysis are based on the defined order management interface specifications and unified order data dictionary. The request parameter specifications and response data structure specifications for order queries across all scenarios are clarified. The order query scenarios supported by suppliers are analyzed, including: single order details query, batch order status query, paginated order list query, and proactive push of order status changes. Conversion rules are formulated for each scenario.
[0064] For each query scenario, the platform implements the following: For suppliers, the platform converts standardized order query request parameters into the format required by the supplier's interface. This includes: order number encoding conversion, query time range format conversion, order status filter condition encoding mapping, and pagination parameter adaptation conversion, ensuring suppliers can accurately respond to query requests. For suppliers, the platform converts all returned order query data into the platform's standard order data structure, covering all dimensions of order basic information, guest information, price settlement information, order status, check-in / check-out status, cancellation information, invoice information, and remarks. The platform also uniformly maps supplier-specific order status, payment status, and check-in status codes to the platform's standard status enumeration values, ensuring consistent order data across the entire platform.
[0065] Proactive Push Scenario Adaptation: For proactive push scenarios of order status changes supported by suppliers, configure corresponding conversion rules to convert incremental order change information pushed by suppliers into the platform's standard format in real time, automatically triggering the synchronous update of the platform's order status, ensuring real-time consistency of order information without the need for manual polling intervention.
[0066] Heterogeneous raw business data from the supplier side is acquired through the data interaction link. The acquired heterogeneous raw business data is input into the corresponding standardized module. The data standardization transformation is completed through format conversion, semantic mapping, and non-standard field compatibility processing within the standardized module, resulting in the transformed platform standard format data. The transformed platform standard format data is then integrated with security authentication configuration, full business scenario conversion rules, adaptation templates, exception handling strategies, and personalized business adaptation logic to obtain a supplier standardized API direct connection module that can achieve seamless integration with the platform's core business system.
[0067] After completing the standardized conversion of each module, the following are the specific details of the formation of supplier security authentication configuration, full-business scenario conversion rules, adaptation templates, exception handling strategies, and personalized business adaptation logic: Security Authentication Configuration: This configuration originates from the supplier security authentication module integration implementation phase. It is a configurable encapsulation of supplier authentication rules, HTTPS+SSL certificate adaptation, sensitive data encryption, and exclusive access permissions. It provides a secure interaction foundation for the direct connection module and is an established standardized result of the early supplier security authentication module integration phase. It (including configurable authentication rules, SSL certificate parameters, sensitive data encryption rules, and exclusive access permissions for the adaptation module) is collected as a whole and incorporated into the core configuration system of the direct connection module as the security foundation for interface interaction.
[0068] Full-Business Scenario Conversion Rules: From the completed bidirectional standardized conversion of modules, configurable and reusable core conversion rules (including bidirectional mapping rules for field / protocol / semantic values, standardized mapping rules for hotel / region / room type codes, and adaptation rules for business logic, etc.) are extracted. All rules are structurally decomposed (e.g., mapping tables, enumeration value matching tables, conversion parameters), eliminating hard coding and solidifying them all into editable configuration items, uniformly written into the supplier's proprietary adaptation template. Originating from the implementation phase of bidirectional standardized conversion of interfaces across all business scenarios, these reusable rules, such as field mapping, protocol conversion, and code mapping, are extracted from the bidirectional conversion of modules such as hotel basic information, price and inventory, and orders, providing core data conversion logic for directly connected modules.
[0069] Improve supplier-specific adaptation templates: Adaptation templates have a basic framework built at the initial stage of supplier integration. All the aforementioned security authentication configurations and business scenario conversion rules are embedded into the corresponding configuration nodes of the template. Basic configurations required for module conversion (such as data dictionary association parameters and interface interaction format parameters) are supplemented, making the template the sole core carrier of all supplier integration configurations, thus completing the template's comprehensive improvement. It runs throughout the entire supplier integration process and is the core that carries all configurations. The basic framework is created initially, and security authentication configurations, conversion rules, exception policies, adaptation logic, etc., are gradually embedded subsequently, ultimately becoming the configuration core of the directly connected modules.
[0070] Develop and embed exception handling strategies: In light of possible exceptions during module conversion (such as field matching failures, encoding mapping errors, and abnormal data formats), and in conjunction with the general exception requirements for standardized supplier connection management in the technical solution, develop differentiated exception handling strategies (automatic exception compatibility, exception retry recording, exception business interception, early warning, and manual review). Configure all strategies as configurable items in the template, embed them into the core logic of module conversion, and configure them in the adaptation template to ensure interaction stability.
[0071] Integrating Personalized Business Adaptation Logic: Based on the non-standard requirements identified in the previous supplier business scenario analysis phase (specific fields, non-standard business rules such as special cancellation policies, customized pricing logic), and the non-standard compatibility solutions implemented in this module conversion phase, these solutions are transformed into executable personalized adaptation logic (such as the association logic between specific fields and platform extended fields, and independent adaptation components for non-standard business rules). This logic is then linked with general conversion rules, integrated, and embedded into adaptation templates to ensure compatibility between non-standard requirements and the standardized framework. Originating from the supplier business scenario and interface information analysis and bidirectional interface conversion phase, this involves compatibility solutions for supplier-specific fields and non-standard business rules (such as special cancellation policies), which are transformed into executable logic and embedded into adaptation templates to achieve compatibility between personalized requirements and the standardized framework.
[0072] The integrated logic encapsulation is performed as follows: Following the implementation principles of layered decoupling, configurability, and scalability, an independent and decoupled encapsulation is performed: the adaptation template carrying all configurations / rules / policies / logic is combined with the platform's adaptive conversion adaptation layer's common components (such as protocol parsing components, data conversion components, and log tracking components) and encapsulated into an independent vendor-specific module. This module is completely decoupled from the platform's core business system, can be configured, tested, and iterated independently, and includes the entire executable logic of interface calls, security authentication, data conversion, and exception handling, ultimately forming a vendor-standardized API direct connection module.
[0073] The standardized API direct connection module is developed based on a general component of the platform's adaptive conversion and adaptation layer. It is completely decoupled from the platform's core business system and can be configured, tested, and iterated independently. It completes the integration with the platform's connection management, data synchronization, and monitoring and early warning system. After passing the full-process joint debugging and testing, it is officially launched, completing the implementation of the entire supplier access without affecting the operation of other suppliers' direct connection modules and the platform's core system.
[0074] By standardizing connection management, intelligent request scheduling, refined anomaly handling, and full-link monitoring, we solve the compatibility issues of connecting heterogeneous systems from multiple vendors, ensuring the accuracy and real-time transmission of core business data such as room status queries and order creation, and ultimately supporting the smooth operation of distribution business and resource sales.
[0075] By employing connection pooling, timeout retries, and exception handling, the failure rate of API interactions is significantly reduced, ensuring the continuity of core business operations. Standardized API adaptation and configuration management mean that when adding or replacing vendors, only the configuration and vendor modular mapping need to be updated, without modifying the core code, shortening the integration cycle. End-to-end log tracking and visual monitoring, combined with real-time alerts, enable rapid location and resolution of API issues, improving operational efficiency. Parallel request processing and connection pool optimization effectively improve API response speed and system throughput, supporting high-concurrency business scenarios.
[0076] In multi-supplier sales scenarios, the accuracy, real-time nature, and cross-channel consistency of basic hotel information (hotel information, room type information, policies, inventory prices) directly impact booking conversion rates and user experience. Dynamic synchronization and multi-dimensional mapping of multi-supplier hotel resource data are the core technologies and business frameworks for solving multi-supplier resource integration and cross-platform information flow. The system construction needs to cover synchronization mechanisms, mapping logic, core modules, and safeguard strategies.
[0077] This module addresses the issues of "data update and synchronization timeliness" and "multi-source data mapping and matching," ensuring real-time consistency between platform data and supplier data through a dynamic update mechanism and multi-dimensional mapping logic.
[0078] Step S40: The direct connection modules are incorporated into various systems of the platform, and after full-link joint debugging and verification, they are integrated and packaged to obtain a standardized API interface for the integration of hotel multi-supplier resources.
[0079] In some specific embodiments, step S40 includes: The direct connection module is integrated with the standardized supplier connection management system, preset parameters are configured for the direct connection module, and the direct connection module is incorporated into the platform's standardized supplier connection management system. Connect the direct connection module to the dynamic data synchronization system, configure dynamic data synchronization rules for the direct connection module, and incorporate the direct connection module into the platform's dynamic data synchronization system; The direct connection module is integrated with the full-link monitoring and early warning system. Full-link log points, monitoring indicators and early warning rules are configured for the direct connection module, and the direct connection module is incorporated into the platform's unified full-link monitoring and early warning system. The direct connection module that completes the connection of the three major systems is integrated with the core elements marked within the module, and then uniformly encapsulated through the platform's standard API gateway to obtain the initial API interface. If the initial API interface passes the full-process integration and verification, then the initial API interface will be used as the standardized API interface.
[0080] In this embodiment, we continue to refer to... Figure 2 The common rules, engine, and scheduling capabilities for connection management, data synchronization, and monitoring and early warning are encapsulated into a standardized management system that is globally unified across the platform. This system serves as the underlying layer, is not targeted at any single vendor, and can be reused globally. The standardized supplier connection management system encapsulates a unified connection pool, timeout retry, exception handling framework, and parallel request scheduling component; it defines global connection parameter specifications, exception classification standards, and concurrency handling rules to form a unified connection control and management system for the platform.
[0081] The data dynamic synchronization system encapsulates a unified data synchronization mechanism, including full / incremental synchronization and mapping relationship update tools; it defines global data synchronization standards, static / dynamic data synchronization specifications, and mapping relationship maintenance rules, forming a unified data synchronization management system for the platform.
[0082] The end-to-end monitoring and early warning system encapsulates unified log collection components, monitoring indicator statistics, and alarm centers; it defines global log tracking specifications, core monitoring indicator standards, and early warning triggering rules to form a unified monitoring and early warning management system for the platform.
[0083] The direct connection business module, supplier-specific configuration, and platform-standardized supplier connection management system are integrated and packaged into a unified whole, and standardized API interfaces are output uniformly through the platform API gateway.
[0084] Specifically, the standardized supplier API direct connection module will be integrated with the standardized supplier connection management system, and the standardized supplier API direct connection module will be incorporated into the platform's standardized supplier connection management system. The following preset parameter configurations will be implemented: Connection pool configuration: Configure dedicated interface connection pool parameters for this vendor, including maximum number of connections, minimum number of idle connections, connection timeout, and connection lifespan, to reuse interface connection resources and reduce the overhead of connection establishment and destruction; Timeout retry policy configuration: Configure the timeout for interface requests to 30 seconds. In view of network fluctuations and the characteristics of upstream suppliers, configure the retry number and retry interval policies to avoid occasional failures from causing business failures. Anomaly classification and handling configuration: Configure differentiated handling strategies for different types of anomalies, such as parameter errors, authentication failures, supplier system anomalies, and business rule rejections, including retry, degradation, alarms, and business blocking, to reduce invalid interactions; Parallel request processing configuration: Configure parallel request scheduling rules for scenarios such as batch queries and data synchronization to improve interface processing efficiency and adapt to high-concurrency business scenarios.
[0085] Integrate the supplier's standardized API direct connection module with the dynamic data synchronization system, configure data synchronization rules for the direct connection module, and incorporate the direct connection module into the platform's data synchronization system: Static data synchronization: Configure timed full synchronization rules for hotel basic information, room type information, and regional information. The synchronization cycle is daily for hotel groups and weekly for non-hotel groups. Also configure a real-time synchronization mechanism for incremental changes. Dynamic data synchronization: Configure real-time / timed incremental synchronization rules for high-frequency change data such as housing prices and inventory. The synchronization cycle is set according to the frequency based on the characteristics of the supplier to ensure that the price and inventory data of the platform and the supplier are consistent in real time. Synchronize mapping relationships: Configure rules for regular inspection and update of hotel mapping relationships to ensure the accuracy of the mapping relationships.
[0086] Integrate the supplier's standardized API direct connection module with the end-to-end monitoring and early warning system, configure end-to-end log points, monitoring indicators, and early warning rules for the supplier's standardized API direct connection module, and incorporate the supplier's standardized API into the platform's unified end-to-end monitoring and early warning system. Complete the following implementation: Full-link log tracking: Record all interface request parameters, response results, processing time, transition status, and exception information of the supplier throughout the entire process to form a complete interaction trajectory, supporting problem tracing and troubleshooting; Monitoring metric configuration: Configure core monitoring metrics, including: API call volume, request success rate, average response time, data conversion anomaly rate, and order success rate, which are displayed in real time through the monitoring dashboard; Early warning rule configuration: Configure anomaly early warning rules. When an interface anomaly, a high percentage of response timeouts, or data conversion anomalies occur, an SMS / email alarm will be triggered immediately to notify operations and development personnel to handle the situation in a timely manner.
[0087] The direct connection module that completes the connection of the three major systems and the core elements marked within the module (such as security authentication configuration and conversion rules) are integrated into one, and uniformly encapsulated by the platform's standard API gateway to obtain the initial API interface; if the initial API interface passes the full-process joint debugging and verification, the initial API interface is used as the standardized API interface.
[0088] Furthermore, in one embodiment, the method further includes the following after step S40: Monitor the operation of the supplier direct connection module and changes in mapping relationships; Based on the aforementioned operational status, determine whether to trigger an alert; Based on the changes in the mapping relationship, update the conversion rules in the mapping relationship and / or the adaptation template in a timely manner; The operational status includes: interface success rate, response time, and abnormal alarm status; the mapping relationship changes include: changes to hotel information, changes to business rules, and changes to field specifications.
[0089] In this embodiment, a long-term operation and maintenance and iteration mechanism is established after the direct connection module is launched to ensure the long-term stable operation of the module and adapt to the needs of supplier interface changes, business rule adjustments and new business scenario expansion.
[0090] The daily operation and monitoring inspection team monitors the operational status of the supplier's direct connection module daily, including interface success rate, response time, and abnormal alarms, and handles abnormal issues in a timely manner; weekly inspections are conducted on interface operation, data synchronization quality, and mapping accuracy, and inspection reports are generated to ensure stable module operation.
[0091] The mapping relationship and rule maintenance operations team regularly maintains the hotel code mapping relationship and updates the mapping relationship in a timely manner for new hotels, changes in hotel information, and mapping mismatches. When suppliers adjust business rules and field specifications, the R&D team updates the conversion rules in the adaptation template in a timely manner. No core code needs to be modified, only the configuration needs to be adjusted to complete the iteration, ensuring that the conversion logic is consistent with the supplier's rules.
[0092] Version iteration and upgrade adaptation: When supplier interface versions are upgraded or platform unified specifications are iterated, corresponding adaptation upgrades are completed for the direct connection module. The upgrade process adopts a gray release method, which does not affect the normal operation of online business. When new business scenarios are added, conversion rules for the corresponding scenarios are quickly supplemented based on the platform's general components to expand the capability boundaries of the direct connection module.
[0093] New suppliers can reuse the direct connection module implemented with this solution, adopting a decoupled architecture of general components and personalized configurations. When adding new suppliers of the same type, there is no need to redevelop the core logic. Only the exclusive mapping rules and personalized parameter adjustments of the new supplier need to be completed in the adaptation template to quickly build the direct connection module of the new supplier, which greatly shortens the access cycle of new suppliers and reduces development and maintenance costs.
[0094] Real-time monitoring of response time and success rate of each supplier's interface, and automatic triggering of alerts when timeouts or errors occur.
[0095] Ensure the availability of all modules, guaranteeing that interfaces can respond to requests normally within the configured time (30 seconds), avoiding issues such as "timeout without response" that directly block business operations. Optimize performance by tracking performance metrics such as interface response speed and frequency limits, identifying performance bottlenecks (such as slow interface response or resource exhaustion), and providing data support for system optimization. Ensure accuracy by verifying the completeness, correctness, and consistency of data returned by interfaces, preventing downstream system anomalies caused by data errors (such as returning null values, missing fields, or logical exceptions).
[0096] Standardized access verification mechanisms (such as parameter validity and data type validation) can proactively intercept requests that do not meet specifications. A unified fault tolerance mechanism, along with clear timeout periods and duplicate order rules (such as a 30-second timeout and personalized checks for duplicate orders), prevents supplier interface instability, thus avoiding the risk of abnormal responses and duplicate bookings. Availability is improved through standardized load balancing, allowing for rapid switching to backup servers in case of module interface failures, ensuring business continuity (such as canary switching of query and order modules), reducing anomaly risks, and enhancing the stability and reliability of the platform system.
[0097] Standardized identity authentication (such as "suppliers can only access their own data") and encrypted transmission (HTTPS / SSL) avoid data leakage risks caused by "weak authentication" and "authority abuse." Compliance requirements are met: standardized data anonymization rules (such as encrypting mobile phone numbers and ID card numbers during transmission) and log auditing mechanisms satisfy the requirements for "cross-border data" and "sensitive information protection," reducing compliance risks. Standardized interface call logs (including request time, parameters, and response results) clearly define the data interaction responsibilities between the system and the supplier, avoiding blame-shifting when problems occur.
[0098] In this embodiment, the types of suppliers and their full range of business scenarios are analyzed to obtain analysis results. Based on the analysis results, the supplier security authentication system is adapted and connected to the platform's unified security management system to build a data interaction link between the platform and suppliers. Based on the data interaction link, bidirectional interface conversion is performed for all business scenarios to build a standardized API direct connection module for suppliers. The direct connection module is incorporated into various systems of the platform, and after full-link joint debugging and verification, it is integrated and encapsulated to obtain a standardized API interface for the integration of hotel multi-supplier resources.
[0099] This embodiment requires maintaining only one standardized access layer. New suppliers can directly reuse the existing framework, reducing redundant development and lowering access development costs. It provides unified monitoring of the interface status of all suppliers (e.g., call success rate, response time), eliminating the need to maintain separate monitoring tools for different suppliers, simplifying operational complexity and improving troubleshooting efficiency. When upgrading the interface system (e.g., core system iteration, server replacement), only the standardized access layer needs updating, eliminating the need to coordinate with each supplier to modify the interface logic, reducing adaptation costs and cross-team communication costs. Clear interface specifications reduce collaboration problems caused by incorrect access judgments. Updates are based on large volumes of data from upstream suppliers, and will be continuously maintained and updated, ensuring the accuracy of hotel information. Combined with scheduled updates and message notification technology, real-time data updates and synchronization are achieved, ensuring the latest and real-time nature of hotel static information, room rates, and other data, improving cross-supplier collaboration efficiency. Standardized access allows data from multiple suppliers to be imported into the platform system in a unified format, providing a complete data foundation for data analysis (supply chain optimization), supporting diversified product operations. The standardized supplier access system can be directly reused in subsequent operations to expand resource links without the need to reconstruct the underlying interface architecture, supporting "rapid trial and error and rapid replication" of business, with a short time cycle and stronger adaptability.
[0100] This embodiment solves the technical problems in the prior art, such as inconsistent interface protocols and data formats among numerous hotel suppliers, high access development costs and low efficiency, lack of dynamic verification mechanisms, and inability of point-to-point connections to support large-scale business expansion.
[0101] Based on the same inventive concept, this application also provides a standardized API interface construction device for use in hotel multi-supplier resource integration scenarios.
[0102] In one embodiment, reference is made to Figure 4 , Figure 4 This is a functional module diagram of an embodiment of the standardized API interface construction apparatus of this application. Figure 4 As shown, the standardized API interface construction device includes: Data analysis module 10 is configured to analyze the types of suppliers and the entire business field to obtain analysis results; The data interaction link construction module 20 is configured to adapt and connect the supplier security authentication system and the platform's unified security management system based on the analysis results, and construct a data interaction link between the platform and the supplier. API direct connection module construction module 30 is configured to perform bidirectional interface conversion for all business scenarios based on the data interaction link, and to build a supplier-standardized API direct connection module. The standardized API interface generation module 40 is configured to incorporate the direct connection modules into various systems of the platform, and after full-link joint debugging and verification, perform integrated aggregation and encapsulation to obtain a standardized API interface for the integration of hotel multi-supplier resources.
[0103] Optionally, in one embodiment, the analysis results include: docking differences, mapping lists, and adaptation schemes; the data analysis module 10 is configured to: Determine the supplier's information and business logic based on the supplier's type; By fully dissecting the supplier's data and business logic from a technical perspective, we can identify the points of divergence between the hotel platform's standard specifications and the supplier's technical specifications. Based on the platform's unified interface specifications and data dictionary, each supplier's full business scenario is compared and matched to obtain a mapping list of supplier fields and platform standard fields under the full business scenario, an adaptation scheme for supplier non-standard business rules and platform standard rules, and a personalized requirement compatibility adaptation scheme for supplier non-standard business logic.
[0104] Optionally, in one embodiment, the data interaction link construction module 20 is configured to: Based on the differences in the analysis results, the security authentication methods and core authentication rules of the supplier interface are dissected to obtain a supplier-specific security authentication adaptation solution that is fully compatible with the unified security management system of the platform. Based on the supplier-specific security authentication adaptation scheme, a data interaction link is built between the platform and the supplier.
[0105] Optionally, in one embodiment, the API direct connection module construction module 30 is configured to: Based on the hotel distribution business scenario, the hotel standardized interface is divided into multiple modules; Each module undergoes bidirectional interface standardization conversion to obtain standardized modules. Heterogeneous raw business data from the supplier side is obtained based on the aforementioned data interaction link; The heterogeneous raw business data is input into the corresponding standardization module, and the data is standardized and transformed according to the standardization conversion rules of the standardization module to obtain platform standard format data; Based on the platform's standard format data, combined with security authentication configuration, full business scenario conversion rules, adaptation templates, exception handling strategies, and personalized business adaptation logic encapsulation, a supplier-standardized API direct connection module is obtained.
[0106] Optionally, in one embodiment, the bidirectional standardization conversion of the interface includes: field naming and format conversion, semantic and value standardization conversion, non-standard field compatibility processing, and encoding system standardization conversion.
[0107] Optionally, in one embodiment, the standardized API interface generation module 40 is configured to: The direct connection module is integrated with the standardized supplier connection management system, preset parameters are configured for the direct connection module, and the direct connection module is incorporated into the platform's standardized supplier connection management system. The direct connection module is connected to the dynamic data synchronization system, data synchronization rules are configured for the direct connection module, and the direct connection module is incorporated into the platform's data synchronization system. The direct connection module is integrated with the full-link monitoring and early warning system. Full-link log points, monitoring indicators and early warning rules are configured for the direct connection module, and the direct connection module is incorporated into the platform's unified full-link monitoring and early warning system. The direct connection module that completes the connection of the three major systems is integrated with the core elements marked within the module, and then uniformly encapsulated through the platform's standard API gateway to obtain the initial API interface. If the initial API interface passes the full-process integration and verification, then the initial API interface will be used as the standardized API interface.
[0108] Optionally, in one embodiment, the standardized API interface construction apparatus further includes a monitoring and early warning module, configured to: Monitor the operation of the supplier direct connection module and changes in mapping relationships; Based on the aforementioned operational status, determine whether to trigger an alert; Based on the changes in the mapping relationship, update the conversion rules in the mapping relationship and / or the adaptation template in a timely manner; The operational status includes: interface success rate, response time, and abnormal alarm status; the mapping relationship changes include: changes to hotel information, changes to business rules, and changes to field specifications.
[0109] The functions of each module in the above-mentioned standardized API interface construction device correspond to the steps in the above-mentioned standardized API interface construction method embodiment, and their functions and implementation processes will not be described in detail here.
[0110] Based on the same inventive concept, embodiments of this application also provide an electronic device, the structure of which is as follows: Figure 5 As shown, it includes: a memory and a processor, wherein the processor is used to read and execute the computer program stored in the memory to implement the aforementioned standardized API interface construction method.
[0111] Based on the same inventive concept, this application also provides a computer storage medium storing computer-executable instructions, which, when executed, implement the aforementioned standardized API interface construction method.
[0112] Finally, it should be noted that while some processes described in the embodiments of this application include multiple operations or steps that appear in a specific order, it should be understood that these operations or steps may not be executed in the order they appear in the embodiments of this application, or may be executed in parallel. The sequence number of the operation is only used to distinguish different operations, and the sequence number itself does not represent any execution order. In addition, these processes may include more or fewer operations, and these operations or steps may be executed sequentially or in parallel, and these operations or steps may be combined.
[0113] Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.
Claims
1. A standardized API interface construction method, characterized in that, For hotel multi-supplier resource integration scenarios, the method includes: The analysis results were obtained by analyzing the types of suppliers and the entire business field; Based on the analysis results, the supplier security certification system and the platform's unified security management system are adapted and connected to build a data interaction link between the platform and the supplier. Based on the aforementioned data interaction link, bidirectional interface conversion is performed across all business scenarios, and a standardized API direct connection module for suppliers is constructed. The direct connection modules are incorporated into various systems of the platform, and after full-link joint debugging and verification, they are integrated and packaged into a standardized API interface for the integration of hotel multi-supplier resources.
2. The method according to claim 1, characterized in that, The analysis results include: points of inconsistency, mapping lists, and adaptation solutions. The analysis of supplier types and full business scenarios yields the following results: Determine the supplier's information and business logic based on the supplier's type; By fully dissecting the supplier's data and business logic from a technical perspective, we can identify the points of divergence between the hotel platform's standard specifications and the supplier's technical specifications. Based on the platform's unified interface specifications and data dictionary, each supplier's full business scenario is compared and matched to obtain a mapping list of supplier fields and platform standard fields under the full business scenario, an adaptation scheme for supplier non-standard business rules and platform standard rules, and a personalized requirement compatibility adaptation scheme for supplier non-standard business logic.
3. The method according to claim 1 or 2, characterized in that, Based on the analysis results, the supplier security certification system and the platform's unified security management system are adapted and integrated to construct a data interaction link between the platform and the supplier, including: Based on the differences in the analysis results, the security authentication methods and core authentication rules of the supplier interface are dissected to obtain a supplier-specific security authentication adaptation solution that is fully compatible with the unified security management system of the platform. Based on the supplier-specific security authentication adaptation scheme, a data interaction link is built between the platform and the supplier.
4. The method according to claim 1, characterized in that, The module for bidirectional interface conversion across all business scenarios, based on the data interaction link, and for building a direct connection module for standardized supplier APIs includes: Based on the hotel distribution business scenario, the hotel standardized interface is divided into multiple modules; Each module undergoes bidirectional interface standardization conversion to obtain standardized modules. Heterogeneous raw business data from the supplier side is obtained based on the aforementioned data interaction link; The heterogeneous raw business data is input into the corresponding standardization module, and the data is standardized and transformed according to the standardization conversion rules of the standardization module to obtain platform standard format data; Based on the platform's standard format data, combined with security authentication configuration, full business scenario conversion rules, adaptation templates, exception handling strategies, and personalized business adaptation logic encapsulation, a supplier-standardized API direct connection module is obtained.
5. The method according to claim 4, characterized in that, The bidirectional standardized conversion of the interface includes: field naming and format conversion, semantic and value standardization conversion, non-standard field compatibility processing, and encoding system standardization conversion.
6. The method according to claim 1, characterized in that, The direct connection modules are incorporated into various systems of the platform, and after full-link joint testing and verification, they are integrated and encapsulated to obtain a standardized API interface for the integration of hotel multi-supplier resources, including: The direct connection module is integrated with the standardized supplier connection management system, preset parameters are configured for the direct connection module, and the direct connection module is incorporated into the platform's standardized supplier connection management system. The direct connection module is connected to the dynamic data synchronization system, data synchronization rules are configured for the direct connection module, and the direct connection module is incorporated into the platform's data synchronization system. The direct connection module is integrated with the full-link monitoring and early warning system. Full-link log points, monitoring indicators and early warning rules are configured for the direct connection module, and the direct connection module is incorporated into the platform's unified full-link monitoring and early warning system. The direct connection module that completes the connection of the three major systems is integrated with the core elements marked within the module, and then uniformly encapsulated through the platform's standard API gateway to obtain the initial API interface. If the initial API interface passes the full-process integration and verification, then the initial API interface will be used as the standardized API interface.
7. The method according to claim 1, characterized in that, After integrating the direct connection modules into various systems of the platform, and performing full-link joint testing and verification, a standardized API interface for integrating hotel multi-supplier resources is obtained, including: Monitor the operation of the supplier direct connection module and changes in mapping relationships; Based on the aforementioned operational status, determine whether to trigger an alert; Based on the changes in the mapping relationship, update the conversion rules in the mapping relationship and / or the adaptation template in a timely manner; The operational status includes: interface success rate, response time, and abnormal alarm status; the mapping relationship changes include: changes to hotel information, changes to business rules, and changes to field specifications.
8. A standardized API interface construction device, characterized in that, For hotel multi-supplier resource integration scenarios, the device includes: The data analysis module is configured to analyze supplier types and the entire business field to obtain analysis results; The data interaction link construction module is configured to adapt and connect the supplier security authentication system and the platform's unified security management system based on the analysis results, and to build a data interaction link between the platform and the supplier. The API direct connection module building module is configured to perform bidirectional interface conversion across all business scenarios based on the data interaction link, and to build a supplier-standardized API direct connection module. The standardized API interface generation module is configured to integrate the direct connection modules into various systems of the platform. After full-link joint debugging and verification, the modules are aggregated and encapsulated in an integrated manner to obtain a standardized API interface for the integration of hotel multi-supplier resources.
9. An electronic device, characterized in that, include: Memory, processor; The processor is configured to read and execute the computer program stored in the memory to implement the standardized API interface construction method according to any one of claims 1-7.
10. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer-executable instructions, which, when executed, implement a standardized API interface construction method according to any one of claims 1-7.