Search Results :

×

Create External REST API endpoints in Dotnetnuke (DNN)

The DNN REST API plugin enables smooth integration of external APIs to DNN sites, which enables fetch and update operations on external data through API calls. This plugin enables, to retrieve or update external data during various DNN events or operations, such as user login, user registration etc. This guide will provide you with a step by step process to set up External REST API for DNN sites.

Step by Step guide for DNN External API Authentication.

  • Open any of the page on your DNN site (Edit mode) and click on Add Module.
DNN External API- Click on Add Module

  • Search for DNN REST API and click on the DNN REST API. Drag and drop the module on the page where you want.
DNN External API- Click on Add Module

  • You have finished with the Installation of the DNN REST API module on your DNN site.

  • Navigate to the DNN REST API Settings Tab. Here, you will see the DNN REST API Plugin Dashboard.
DNN External API- Plugin Dashboard

  • Click on Create API, to initiate external API generation.
DNN External API- Create API

  • Now Select External API.
DNN External API- Select External API

  • Enter the following details:
  1. API Name: Provide a unique name for your API.
  2. API Method: Select HTTP request method from the dropdown.
  3. External API Endpoint: Configure your external API Endpoint.
DNN External API- Enter API Details

  • You can configure the Authentication method for the API from the authorization tab and add Headers if required from the Headers tab.
  • You can also pass the data in the body in different formats including JSON, x-www-form-urlencoded, xml etc. from the Body tab.
  • In the advanced settings section, you have an option to pass the parameters.
  • After entering the details, click on Generate API.
DNN External API- Generate API

  • Now, under the External APIs section, you can find your generated API.
DNN External API- External API List

  • To test the API, click the Test option under the Action dropdown.
DNN External API- Test External API

  • A Test Pop-up will appear. Provide the required details such as headers or body data and then click on Execute button.
DNN External API- click on execute

  • If everything is configured correctly, a success response will be returned by the API confirming that your external api is configured correctly.
DNN External API- Test Successful window

This guide will enable you to set up and integrate your external APIs into your DNN application. By utilizing this REST API integration with DNN, you can securely perform fetch, insert, update and delete operations on the external data through API calls from your DNN application.



ADFS_sso ×
Hello there!

Need Help? We are right here!

support