feat(api): include tags in app information response (#11242)
This commit is contained in:
parent
c34bdb74e6
commit
858db2f239
1 changed files with 2 additions and 1 deletions
|
|
@ -48,7 +48,8 @@ class AppInfoApi(Resource):
|
||||||
@validate_app_token
|
@validate_app_token
|
||||||
def get(self, app_model: App):
|
def get(self, app_model: App):
|
||||||
"""Get app information"""
|
"""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")
|
api.add_resource(AppParameterApi, "/parameters")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue