Update metadata.md

This commit is contained in:
Tom Christie 2020-05-05 14:04:26 +01:00 committed by GitHub
parent 3643c05b27
commit f15c66c877
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,7 @@ If you have specific requirements for creating schema endpoints that are accesse
For example, the following additional route could be used on a viewset to provide a linkable schema endpoint. For example, the following additional route could be used on a viewset to provide a linkable schema endpoint.
@action(methods=['GET'], detail=False) @action(methods=['GET'], detail=False)
def _schema(self, request): def api_schema(self, request):
meta = self.metadata_class() meta = self.metadata_class()
data = meta.determine_metadata(request, self) data = meta.determine_metadata(request, self)
return Response(data) return Response(data)