Browse Source

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

Hiroshi Fujita 4 tháng trước cách đây
mục cha
commit
858db2f239
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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")