refactor: Migrate part of the web API module to Flask-RESTX (#24659)
This commit is contained in:
parent
06dd4d6e00
commit
47f02eec96
4 changed files with 182 additions and 8 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue