Overview
This document will explain Contentful CMS integration with SAP Commerce which includes implementation of Mulesoft as a Middleware for routing and transforming messages.
The behaviour of this implementation will work as a single application where content writers can insert some content for products and categories in Contentful which will be pushed to SAP Commerce passing through Mulesoft.
Contentful CMS Introduction
Contentful is all about content. From web apps to billboards, It makes sure that your content gets delivered via CDN in a flash. But before any content can be delivered to apps, It needs to create a data model for it. Much like a database table, a content model lets you define what type of content you want to store and once this is ready the content is delivered to other systems through Contentful REST APIs called as Content Delivery API(CDA) and Content Management API(CMA).
How This Integration Works
There's some explanation for the flow of integration defined below:
- Content writer adds/modifies content in Contentful Entry which is then triggered by Contentful Webhook
- Webhook then notifies with payload to Mulesoft
- Mulesoft transforms Contentful payload to SAP Commerce payload
- Mulesoft requests SAP Commerce Platform Webservices with payload as body to insert category or product
- SAP Commerce Platform Webservices then persists data in SAP Commerce platform and in response status code is sent to Contentful Webhook Passing though Mulesoft.
Technical Implementation
There are some steps to prepare systems before integration:
Prepare Systems