Base

Every custom app has a piece of settings that are common to all custom app modules and remote procedures. Use the BASE tab to specify settings that are inherited by all modules and remote procedures.

These common settings are:

  • Base URL

  • Authorization

  • Error Handling

  • Sanitization

Read more about Base.

Set up base for the demo API

In this step, we will set up the Base for our custom app. The custom app uses the Virtual Library Demo API.

  1. Navigate to your custom app settings.

  2. Click on the BASE tab.

  3. The first code block already contains a JSON snippet:

{
    "baseUrl": "https://www.example.com",
    "log": {
        "sanitize": ["request.headers.authorization"]
    }
}
  1. Replace the URL address https://www.example.com with the Virtual Library Demo API base URL: http://demo-api.integrokit.com/api/v1

  2. Press Ctrl+S to save changes.

Note that the baseUrl key contains the API URL without the /helloworld endpoint path. You specify the endpoint path in the module settings.

The base settings of your custom app look like this:

{
    "baseUrl": "http://demo-api.integrokit.com/api/v1",
    "log": {
        "sanitize": ["request.headers.authorization"]
    }
}

Last updated