refactor: Migrate part of the web API module to Flask-RESTX (#24659)

This commit is contained in:
Guangdong Liu 2025-08-28 09:22:31 +08:00 • committed by GitHub
commit 47f02eec96
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 182 additions and 8 deletions

View file

@ -53,6 +53,18 @@ class AppSiteApi(WebApiResource):
"custom_config": fields.Raw(attribute="custom_config"),
}
@api.doc("Get App Site Info")
@api.doc(description="Retrieve app site information and configuration.")
@api.doc(
responses={
200: "Success",
400: "Bad Request",
401: "Unauthorized",
403: "Forbidden",
404: "App Not Found",
500: "Internal Server Error",
}
)
@marshal_with(app_fields)
def get(self, app_model, end_user):
"""Retrieve app site info."""