|
|
|
|
@ -1,4 +1,4 @@
|
|
|
|
|
from flask_restful import Resource, marshal_with # type: ignore
|
|
|
|
|
from flask_restful import Resource, marshal_with
|
|
|
|
|
|
|
|
|
|
from controllers.common import fields
|
|
|
|
|
from controllers.service_api import api
|
|
|
|
|
@ -47,7 +47,7 @@ class AppInfoApi(Resource):
|
|
|
|
|
def get(self, app_model: App):
|
|
|
|
|
"""Get app information"""
|
|
|
|
|
tags = [tag.name for tag in app_model.tags]
|
|
|
|
|
return {"name": app_model.name, "description": app_model.description, "tags": tags}
|
|
|
|
|
return {"name": app_model.name, "description": app_model.description, "tags": tags, "mode": app_model.mode}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
api.add_resource(AppParameterApi, "/parameters")
|
|
|
|
|
|