Define the endpoint to remove

endpoint_to_remove = "/api/cron/workflow-instance-execute"

Filter out the endpoint to remove

endpoints = [endpoint for endpoint in endpoints if endpoint.path != endpoint_to_remove]

Return the filtered endpoints

return endpoints

class CustomSchemaGeneratorOpenAPISchemaGenerator def get_endpointsself request # Get all endpoints from the parent class endpoints = superget_endpointsrequest remove apicronworkfl

原文地址: https://www.cveoy.top/t/topic/buuC 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录