Skip to content

Commit 5bd2fa7

Browse files
committed
fix: use absolute server URL in API reference specs
1 parent 10148a4 commit 5bd2fa7

15 files changed

Lines changed: 30 additions & 120 deletions

en/api-reference/openapi_chat.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "The base URL for the Chat App API. Replace {api_base_url} with the actual API base URL provided for your application.",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "Actual base URL of the API"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Base URL of the Chat App API. For self-hosted deployments, replace it with your own API base URL."
1812
}
1913
],
2014
"security": [

en/api-reference/openapi_chatflow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "The base URL for the Chatflow App API. Replace {api_base_url} with the actual API base URL provided for your application.",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "Actual base URL of the API"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Base URL of the Chatflow App API. For self-hosted deployments, replace it with your own API base URL."
1812
}
1913
],
2014
"security": [

en/api-reference/openapi_completion.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "The base URL for the Completion App API. Replace {api_base_url} with the actual API base URL provided for your application.",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "Actual base URL of the API"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Base URL of the Completion App API. For self-hosted deployments, replace it with your own API base URL."
1812
}
1913
],
2014
"security": [

en/api-reference/openapi_knowledge.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{apiBaseUrl}",
11-
"description": "The base URL for the Knowledge API.",
12-
"variables": {
13-
"apiBaseUrl": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "Actual base URL of the API"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Base URL of the Knowledge API. For self-hosted deployments, replace it with your own API base URL."
1812
}
1913
],
2014
"security": [

en/api-reference/openapi_workflow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "The base URL for the Workflow App API. Replace {api_base_url} with the actual API base URL.",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "Actual base URL of the API"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Base URL of the Workflow App API. For self-hosted deployments, replace it with your own API base URL."
1812
}
1913
],
2014
"security": [

ja/api-reference/openapi_chat.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "チャットアプリ API のベース URL です。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "API の実際のベース URL"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "チャットアプリ API のベース URL です。セルフホスト環境では、独自の API ベース URL に置き換えてください。"
1812
}
1913
],
2014
"security": [

ja/api-reference/openapi_chatflow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "Chatflow アプリ API のベース URL です。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "API の実際のベース URL"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Chatflow アプリ API のベース URL です。セルフホスト環境では、独自の API ベース URL に置き換えてください。"
1812
}
1913
],
2014
"security": [

ja/api-reference/openapi_completion.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "テキスト生成アプリ API のベース URL です。{api_base_url} をアプリケーションに提供された実際の API ベース URL に置き換えてください。",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "API の実際のベース URL"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "テキスト生成アプリ API のベース URL です。セルフホスト環境では、独自の API ベース URL に置き換えてください。"
1812
}
1913
],
2014
"security": [

ja/api-reference/openapi_knowledge.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{apiBaseUrl}",
11-
"description": "Knowledge API のベース URL です。",
12-
"variables": {
13-
"apiBaseUrl": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "API の実際のベース URL"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Knowledge API のベース URL です。セルフホスト環境では、独自の API ベース URL に置き換えてください。"
1812
}
1913
],
2014
"security": [

ja/api-reference/openapi_workflow.json

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,8 @@
77
},
88
"servers": [
99
{
10-
"url": "{api_base_url}",
11-
"description": "Workflow App API のベース URL です。{api_base_url} を実際の API ベース URL に置き換えてください。",
12-
"variables": {
13-
"api_base_url": {
14-
"default": "https://api.dify.ai/v1",
15-
"description": "API の実際のベース URL"
16-
}
17-
}
10+
"url": "https://api.dify.ai/v1",
11+
"description": "Workflow App API のベース URL です。セルフホスト環境では、独自の API ベース URL に置き換えてください。"
1812
}
1913
],
2014
"security": [

0 commit comments

Comments
 (0)