Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

feat(api): include tags in app information response (#11242)

Hiroshi Fujita858db2f239fa
diff --git a/api/controllers/service_api/app/app.py b/api/controllers/service_api/app/app.py
index 88b13faa52a..ecff7d07e97 100644
--- a/api/controllers/service_api/app/app.py
+++ b/api/controllers/service_api/app/app.py
@@ -48,7 +48,8 @@ class AppInfoApi(Resource):
@validate_app_token
def get(self, app_model: App):
"""Get app information"""
- return {"name": app_model.name, "description": app_model.description}
+ tags = [tag.name for tag in app_model.tags]
+ return {"name": app_model.name, "description": app_model.description, "tags": tags}
api.add_resource(AppParameterApi, "/parameters")