| def get(self, app_model: App): | def get(self, app_model: App): | ||||
| """Get app information""" | """Get app information""" | ||||
| tags = [tag.name for tag in app_model.tags] | tags = [tag.name for tag in app_model.tags] | ||||
| return {"name": app_model.name, "description": app_model.description, "tags": tags, "mode": app_model.mode} | |||||
| return { | |||||
| "name": app_model.name, | |||||
| "description": app_model.description, | |||||
| "tags": tags, | |||||
| "mode": app_model.mode, | |||||
| "author_name": app_model.author_name, | |||||
| } | |||||
| api.add_resource(AppParameterApi, "/parameters") | api.add_resource(AppParameterApi, "/parameters") |
| - `name` (string) application name | - `name` (string) application name | ||||
| - `description` (string) application description | - `description` (string) application description | ||||
| - `tags` (array[string]) application tags | - `tags` (array[string]) application tags | ||||
| - `mode` (string) application mode | |||||
| - `author_name` (string) author name | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) アプリケーションの名前 | - `name` (string) アプリケーションの名前 | ||||
| - `description` (string) アプリケーションの説明 | - `description` (string) アプリケーションの説明 | ||||
| - `tags` (array[string]) アプリケーションのタグ | - `tags` (array[string]) アプリケーションのタグ | ||||
| - `mode` (string) アプリケーションのモード | |||||
| - `author_name` (string) 作者の名前 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) 应用名称 | - `name` (string) 应用名称 | ||||
| - `description` (string) 应用描述 | - `description` (string) 应用描述 | ||||
| - `tags` (array[string]) 应用标签 | - `tags` (array[string]) 应用标签 | ||||
| - `mode` (string) 应用模式 | |||||
| - 'author_name' (string) 作者名称 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) application name | - `name` (string) application name | ||||
| - `description` (string) application description | - `description` (string) application description | ||||
| - `tags` (array[string]) application tags | - `tags` (array[string]) application tags | ||||
| - `mode` (string) application mode | |||||
| - `author_name` (string) application author name | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "advanced-chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) アプリケーションの名前 | - `name` (string) アプリケーションの名前 | ||||
| - `description` (string) アプリケーションの説明 | - `description` (string) アプリケーションの説明 | ||||
| - `tags` (array[string]) アプリケーションのタグ | - `tags` (array[string]) アプリケーションのタグ | ||||
| - `mode` (string) アプリケーションのモード | |||||
| - `author_name` (string) 作者の名前 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "advanced-chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "advanced-chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) application name | - `name` (string) application name | ||||
| - `description` (string) application description | - `description` (string) application description | ||||
| - `tags` (array[string]) application tags | - `tags` (array[string]) application tags | ||||
| - `mode` (string) application mode | |||||
| - `author_name` (string) application author name | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "advanced-chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) アプリケーションの名前 | - `name` (string) アプリケーションの名前 | ||||
| - `description` (string) アプリケーションの説明 | - `description` (string) アプリケーションの説明 | ||||
| - `tags` (array[string]) アプリケーションのタグ | - `tags` (array[string]) アプリケーションのタグ | ||||
| - `mode` (string) アプリケーションのモード | |||||
| - `author_name` (string) 作者の名前 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) 应用名称 | - `name` (string) 应用名称 | ||||
| - `description` (string) 应用描述 | - `description` (string) 应用描述 | ||||
| - `tags` (array[string]) 应用标签 | - `tags` (array[string]) 应用标签 | ||||
| - `mode` (string) 应用模式 | |||||
| - 'author_name' (string) 作者名称 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "chat", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) application name | - `name` (string) application name | ||||
| - `description` (string) application description | - `description` (string) application description | ||||
| - `tags` (array[string]) application tags | - `tags` (array[string]) application tags | ||||
| - `mode` (string) application mode | |||||
| - `author_name` (string) application author name | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "workflow", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) アプリケーションの名前 | - `name` (string) アプリケーションの名前 | ||||
| - `description` (string) アプリケーションの説明 | - `description` (string) アプリケーションの説明 | ||||
| - `tags` (array[string]) アプリケーションのタグ | - `tags` (array[string]) アプリケーションのタグ | ||||
| - `mode` (string) アプリケーションのモード | |||||
| - `author_name` (string) 作者の名前 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "workflow", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |
| - `name` (string) 应用名称 | - `name` (string) 应用名称 | ||||
| - `description` (string) 应用描述 | - `description` (string) 应用描述 | ||||
| - `tags` (array[string]) 应用标签 | - `tags` (array[string]) 应用标签 | ||||
| - `mode` (string) 应用模式 | |||||
| - 'author_name' (string) 作者名称 | |||||
| </Col> | </Col> | ||||
| <Col> | <Col> | ||||
| <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | <CodeGroup title="Request" tag="GET" label="/info" targetCode={`curl -X GET '${props.appDetail.api_base_url}/info' \\\n-H 'Authorization: Bearer {api_key}'`}> | ||||
| "tags": [ | "tags": [ | ||||
| "tag1", | "tag1", | ||||
| "tag2" | "tag2" | ||||
| ] | |||||
| ], | |||||
| "mode": "workflow", | |||||
| "author_name": "Dify" | |||||
| } | } | ||||
| ``` | ``` | ||||
| </CodeGroup> | </CodeGroup> |