The External API Lookup extension lets you fetch data from an external API and display the data as possible values for the field on an entry page in Contentstack.
Note: For this example, we have used Reqres that provides demo data.
We have created a step-by-step guide on how to create an External API Lookup extension for your content types. You can refer the External API Lookup extension guide on our documentation site for more info.
To modify the extension, you first need to clone this repo and install the dependencies. Then, edit the HTML, CSS, and JS files from the source folder, and create a build using gulp task.
To install dependencies, run the following command in the root folder:
npm install gulp-cli -g
npm install
To create a new build for the extension, run the following command (index.html):
gulp
To run source watch, run the following command:
gulp watch