MCPcopy Index your code
hub / github.com/encode/django-rest-framework / get_format_suffix

Method get_format_suffix

rest_framework/views.py:255–260  ·  view source on GitHub ↗

Determine if the request includes a '.json' style format suffix

(self, **kwargs)

Source from the content-addressed store, hash-verified

253 # API policy instantiation methods
254
255 def get_format_suffix(self, **kwargs):
256 """
257 Determine if the request includes a '.json' style format suffix
258 """
259 if self.settings.FORMAT_SUFFIX_KWARG:
260 return kwargs.get(self.settings.FORMAT_SUFFIX_KWARG)
261
262 def get_renderers(self):
263 """

Callers 1

initialMethod · 0.95

Calls 1

getMethod · 0.45

Tested by

no test coverage detected