Integration via API (REST)
The following graphic shows the integration via API schematically:

Preparations and design
The server-side integration (server script) is the code layer placed between the FactFinder Search server and your destination pages. It governs communication between the two and must be implemented before an API integration.
The steps are as follows:
Search query is sent to FactFinder: The search parameters entered by the user must be sent to the FactFinder Search server via an HTTP request.
Search results are received (response): The FactFinder Search server delivers the search results via a structured response (XML/JSON).
Search results are processed: The returned data must be parsed by the shop system.
Search results page is generated (display): The HTML structure of the search results page must be based on the delivered search result information.
The most important difference between this method and the Web Components result is that the design of the search results page is created by the shop. In this way the design is centrally managed and does not need to be monitored and corrected at multiple locations.
Ways to integrate
The integration via API comes in two flavors:
Develop the integration code from scratch. All necessary information can be found on your Swagger UI page:
https://[your FactFinder setup here]/FactFinder/swagger-ui.html
. Demos and examples can be found on GitHub.Use Swagger Codegen. Classes like
SearchRequest
,SearchParams
, andTrackingApi
are generated automatically, simplifying your integration code. Learn more here: How to use Swagger Codegen for the integration via API
Last updated
Was this helpful?