Skip to content

Remove wildcard from api endpoint documentation - #5290

Closed
thatnerdjosh wants to merge 1 commit into
encode:masterfrom
thatnerdjosh:master
Closed

thatnerdjosh wants to merge 1 commit into
encode:masterfrom
thatnerdjosh:master

Conversation

@thatnerdjosh

Copy link
Copy Markdown

Description

Removes wildcard endpoints from EndpointInspector aggregator. This prevents fallback endpoints from being documented.

@carltongibson

Copy link
Copy Markdown
Collaborator

I'm going to close this.

The correct way to exclude endpoints is currently to set exclude_from_schema on your view:

class MyView(APIView):
   exclude_from_schema = True

From 3.7 this will change to setting schema = None:

class MyView(APIView):
   schema = None

Ref #5422

@thatnerdjosh

Copy link
Copy Markdown
Author

Will try this, thanks! @carltongibson

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants