Skip to content

Commit

Permalink
feat(api): include tags in app information response (#11242)
Browse files Browse the repository at this point in the history
  • Loading branch information
fujita-h authored Dec 2, 2024
1 parent c34bdb7 commit 858db2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion api/controllers/service_api/app/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 858db2f

Please sign in to comment.