# Insomnia setup source: https://developer.mastercard.com/doconomy-aland-index/tutorial/api-testing/step1/index.md ### Insomnia {#insomnia} * The Insomnia tool is a popular open-source REST client application that works on Windows, Mac, and Linux operating systems. * It is a handy tool for developers to test API calls by simply filling in the parameters without writing any code. * The Doconomy Aland Index API can also be tested with this tool. > #### What you will learn. {#what-you-will-learn} > > * How to configure the API for testing via the Insomnia tool. > * How to set up the Sandbox environment in the Insomnia tool. > * How to test the API. > > #### Estimated time to complete this tutorial. {#estimated-time-to-complete-this-tutorial} > > * 15-20 minutes. ### Pre-requisites {#pre-requisites} 1. Create a project for the Doconomy Aland Index API. 2. On-board for the Doconomy Aland Index API with a valid BIN range by Mastercard. 3. [Insomnia tool](https://insomnia.rest/) installed. 4. [Mastercard Insomnia Plugin](https://github.com/Mastercard/insomnia-plugin-mastercard-auth#installation-) installed. Tip: To create your project on Mastercard Developers, refer to the [Before You Start](https://developer.mastercard.com/doconomy-aland-index/documentation/getting-started/index.md#before-you-start) section for more information. ## Set up Sandbox Environment {#set-up-sandbox-environment} 1. From the drop-down of the top-left purple bar, select the "Create Workspace" option to create a new workspace. 2. Name the workspace as "Doconomy Aland Index" and click **Create** . ![Create Workspace](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_1.png) 3. Add Sandbox as one of the environment. 4. From the "No Environment" drop-down list, go to the "Manage Environments". ![Manage Environment](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_2.png) 5. Click '+' and select "Environment" to create a new environment. ![Create Environment](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_4.png) 6. On the left-side under "Sub Environments", double-click the "New Environment" to name the new environment as "Sandbox". ![Rename Environment](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_5.png) 7. Copy and paste the following configuration under Sandbox and click **Done** to finish. ![Set up Complete](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_6.png) ```json { "host": "", "mastercard": { "consumerKey": "", "keyAlias": "", "keystoreP12Path": "", "keystorePassword": "" } } ``` 8. The Insomnia tool is successfully set up. Follow the next section below. ## Configure Sandbox Environment {#configure-sandbox-environment} Now, as your Insomnia tool has been set up, let's configure by adding a Sandbox environment. 1. Log in to your Mastercard developers account and go to your project. If you have not created your project yet, follow these [steps](https://developer.mastercard.com/doconomy-aland-index/documentation/getting-started/index.md). 2. Use the following details from the "Sandbox" section of your project: * Consumer Key * Key Alias * Keystore Password 3. Use the following details: * host as `https://sandbox.api.mastercard.com` * keystoreP12Path as the absolute location of the .p12 file which was generated during your project creation. 4. Go to **Manage Environments** of Insomnia tool and update the configurations as shown below and click **Done** to finish. ![Configuration Complete](https://static.developer.mastercard.com/content/doconomy-aland-index/Images/insomnia/insomnia_7.png) 5. Insomnia tool is successfully configured and ready to test the API in Sandbox. Follow the next section below. ### Services Testability list {#services-testability-list} The following table captures the services of the Doconomy Aland Index API that can be tested using Insomnia. | Service | Endpoint | Testable using Insomnia | |-----------------------------------|--------------------------------|-------------------------| | Calculate Transaction Footprints. | /transaction-footprints | Yes | | Provide Supported Currencies. | /supported-currencies | Yes | | Provide Supported MCCs. | /supported-merchant-categories | Yes |