mirror of
https://github.com/wagtail/wagtail.git
synced 2024-11-28 08:48:04 +01:00
Allow "format" GET parameter
Used in the browsable API to allow the user to explicitly ask for JSON format (eg ?format=json)
This commit is contained in:
parent
1e73eb9419
commit
95f5c16cee
@ -41,6 +41,9 @@ class BaseAPIEndpoint(GenericViewSet):
|
||||
|
||||
# Used by jQuery for cache-busting. See #1671
|
||||
'_',
|
||||
|
||||
# Required by BrowsableAPIRenderer
|
||||
'format',
|
||||
])
|
||||
extra_api_fields = []
|
||||
name = None # Set on subclass.
|
||||
|
Loading…
Reference in New Issue
Block a user