Contentful is a hosted API solution which offers a fast and slick way to create an API-first product. The icing on the cake is a flexible and powerful interface that you do not have to self-host.
At DADI, we’re aiming at a slightly different use-case, but the two projects share similar goals and there is nothing to stop you mix-and-matching, especially if you don’t want the hassle of hosting your own API and database.
To show how easy it is to integrate DADI products with other solutions, we have created a sample project where you can use DADI Web with Contentful’s API service. It makes use of a new restapi datasource type we’ll be launching with Web soon.
This tutorial assumes you have installed DADI Web already, but if you haven’t, you might find this post useful.
Generate an API key
After you have signed up for Contentful, you’ll need to generate an API key to allow DADI Web to communicate with the service.
You can do that by visiting Space settings > API Keys and clicking Add API key.
This will generate the info you need. Name the API key DADI Web, so future you knows what it’s for.

You should also make a note of the values for Space ID and Content Delivery API - access token. We’ll make use of these in the next step.
Configure Web
New in Web 6.0 is the ability to add configurations for multiple APIs in your main config.json file.
{
Tutorials
Last Updated:
September 2019



