class CustomSchemaGenerator(OpenAPISchemaGenerator): def get_endpoints(self, request): ' Get all endpoints from the parent class ' endpoints = super().get_endpoints(request) ' Remove the first endpoint ' endpoints.pop(0) ' Return the filtered endpoints ' return endpoints

Custom Schema Generator: Removing the First Endpoint in OpenAPI

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

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