-
-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Drop deprecated coreapi support #9895
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
856e33c
8494937
e88d7c6
5512e2e
155d29b
0d90489
cdb6f02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -202,16 +202,16 @@ decorator. For example: | |
| from rest_framework.schemas import AutoSchema | ||
|
|
||
| class CustomAutoSchema(AutoSchema): | ||
| def get_link(self, path, method, base_url): | ||
| def get_operation(self, path, method): | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. can you explain a bit about the rename?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The The So it's not really a rename, it's more of an API difference between the 2 |
||
| # override view introspection here... | ||
|
|
||
| @api_view(['GET']) | ||
| @schema(CustomAutoSchema()) | ||
| def view(request): | ||
| return Response({"message": "Hello for today! See you tomorrow!"}) | ||
|
|
||
| This decorator takes a single `AutoSchema` instance, an `AutoSchema` subclass | ||
| instance or `ManualSchema` instance as described in the [Schemas documentation][schemas]. | ||
| This decorator takes a single `AutoSchema` instance or an `AutoSchema` subclass | ||
| instance as described in the [Schemas documentation][schemas]. | ||
| You may pass `None` in order to exclude the view from schema generation. | ||
|
|
||
| @api_view(['GET']) | ||
|
|
||
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.