瀏覽代碼

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

Hiroshi Fujita 4 月之前
父節點
當前提交
858db2f239
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      api/controllers/service_api/app/app.py

+ 2 - 1
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")