class documentation

class SimpleMetadata(BaseMetadata): (source)

View In Hierarchy

This is the default metadata implementation. It returns an ad-hoc set of information about the view. There are not any formalized standards for `OPTIONS` responses for us to base this on.

Method determine_actions For generic class based views we return information about the fields that are accepted for 'PUT' and 'POST' methods.
Method determine_metadata Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.
Method get_field_info Given an instance of a serializer field, return a dictionary of metadata about it.
Method get_serializer_info Given an instance of a serializer, return a dictionary of metadata about its fields.
Class Variable label_lookup Undocumented
def determine_actions(self, request, view): (source)

For generic class based views we return information about the fields that are accepted for 'PUT' and 'POST' methods.

def determine_metadata(self, request, view): (source)

Return a dictionary of metadata about the view. Used to return responses for OPTIONS requests.

def get_field_info(self, field): (source)

Given an instance of a serializer field, return a dictionary of metadata about it.

def get_serializer_info(self, serializer): (source)

Given an instance of a serializer, return a dictionary of metadata about its fields.

label_lookup = (source)

Undocumented