                              coreapi.Field('ordering', required=False, location='query')
                          ]
                      ),
                      'retrieve': coreapi.Link(
                          url='/example/{pk}/',
                          action='get',
                          fields=[
 
</s> remove     def get_key(self, path, method, callback):
 </s> add     def get_action(self, path, method, callback): </s> remove         Return a tuple of strings, indicating the identity to use for a
        given endpoint. eg. ('users', 'list').
 </s> add         Return a description action string for the endpoint, eg. 'list'. </s> remove         return api_endpoints
 </s> add         return self.add_categories(api_endpoints)

    def add_categories(self, api_endpoints):
        """
        (path, method, action, callback) -> (path, method, category, action, callback)
        """
        # Determine the top level categories for the schema content,
        # based on the URLs of the endpoints. Eg `set(['users', 'organisations'])`
        paths = [endpoint[0] for endpoint in api_endpoints]
        categories = self.get_categories(paths)

        return [
            (path, method, self.get_category(categories, path), action, callback)
            for (path, method, action, callback) in api_endpoints
        ]
                    'custom_list_action': coreapi.Link(
                        url='/example/custom_list_action/',
                        action='get'
                    ),
                              coreapi.Field('ordering', required=False, location='query')
                          ]
                      ),
                    'custom_list_action': coreapi.Link(
                        url='/example/custom_list_action/',
                        action='get'
                    ),
                      'retrieve': coreapi.Link(
                          url='/example/{pk}/',
                          action='get',
                          fields=[
keep keep add keep keep keep keep
 Fix schema categories for custom list actions (#4386) 
tests/test_schemas.py