Преглед изворни кода

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")