rest_framework_json_api.metadata module

class rest_framework_json_api.metadata.JSONAPIMetadata

Bases: SimpleMetadata

This is the JSON:API 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.

type_lookup = <rest_framework.utils.field_mapping.ClassLookupDict object>
relation_type_lookup = <rest_framework.utils.field_mapping.ClassLookupDict object>
determine_metadata(request, view)
get_serializer_info(serializer)

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

get_field_info(field)

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