From dfc67e66fbb669395a1358e933eeed2c9341fdcf Mon Sep 17 00:00:00 2001 From: Josh Santos Date: Mon, 24 Jul 2017 09:13:42 -0400 Subject: [PATCH] Remove wildcard from api endpoint documentation --- rest_framework/schemas.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index 875f9454b3..13db175d5a 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -239,6 +239,9 @@ def should_include_endpoint(self, path, callback): if path.endswith('.{format}') or path.endswith('.{format}/'): return False # Ignore .json style URLs. + if path.endswith('.*'): + return False # Ignore wildcard URLs. + return True def get_allowed_methods(self, callback):