Basedoc Docs

Search...
K
Config

API configuration

The API configuration is used to configure the project's API settings, including the API URL and more.

API URL

This setting is used to define the default base URL for all API endpoints.

JSON
{
  "api": {
    "custom": {
      "serverUrl": "https://api.example.com"
    }
  }
}

This can be overridden on a per-page basis by adding an api.serverUrl value to an API page's frontmatter.

YAML
---
api:
  serverUrl: "https://api.example.com/v2"
---

© Basedoc Docs

Powered by Basedoc

On this page