General Settings
This module allows for the configuration of general settings in APIPark, including the display of API call addresses on the API portal, the service classification information to which services are bound, and more.
Configure API Request Address
On the API Park platform, the API Request Address setting is used to specify the base URL (Base URL) for interface calls, providing a prefix for the complete path of API requests. Once configured in the system settings, the API request address is automatically used as a prefix for displaying API documentation and the actual request path, ensuring a uniform address format and enhancing management and call convenience.
Main Function Logic
- Set Base URL: Administrators can configure the
API Request Addressin the "General Settings" of the system settings, such ashttp://api.apipark.com. This is the base path of the platform's API, serving as the prefix address for all API calls. - Document Display: When users view API documentation in the API portal, the configured base URL will automatically show in front of the API address. For example, a translation API path
/demo_translation_apiwill display ashttp://api.apipark.com/demo_translation_api. - Unified Call Path: By setting a uniform
API Request Addressin the system, users do not need to manually concatenate the base path when calling the API, focusing only on the specific API resource path, which reduces errors and configuration complexity. - Dynamic Updates: If the
API Request Addresschanges, all API paths displayed in the documentation will automatically update, maintaining consistency between documentation and actual call addresses, ensuring system flexibility and ease of maintenance.