feat: API docs for service api (#24425)
Signed-off-by: -LAN- <laipz8200@outlook.com>
This commit is contained in:
parent
846b6bd14e
commit
b7466f8b65
31 changed files with 1724 additions and 627 deletions
|
|
@ -1,4 +1,4 @@
|
|||
from flask_restx import fields
|
||||
from flask_restx import Api, Namespace, fields
|
||||
|
||||
from fields.end_user_fields import simple_end_user_fields
|
||||
from fields.member_fields import simple_account_fields
|
||||
|
|
@ -17,6 +17,11 @@ workflow_run_for_log_fields = {
|
|||
"exceptions_count": fields.Integer,
|
||||
}
|
||||
|
||||
|
||||
def build_workflow_run_for_log_model(api_or_ns: Api | Namespace):
|
||||
return api_or_ns.model("WorkflowRunForLog", workflow_run_for_log_fields)
|
||||
|
||||
|
||||
workflow_run_for_list_fields = {
|
||||
"id": fields.String,
|
||||
"version": fields.String,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue