          path = '/example/'
          method = 'GET'
  
          view = create_view(
              views.ExampleListView,
              method,
              create_request(path)
          )
          inspector = AutoSchema()
          inspector.view = view
 
</s> remove             views.ExampleDetailView,
 </s> add             views.DocStringExampleDetailView, </s> remove         parameters = inspector._get_path_parameters(path, method)
        assert parameters == [{
            'description': '',
            'in': 'path',
            'name': 'id',
            'required': True,
            'schema': {
                'type': 'string',
 </s> add         operation = inspector.get_operation(path, method)
        assert operation == {
            'operationId': 'RetrieveDocStringExampleDetail',
            'description': 'A description of my GET operation.',
            'parameters': [{
                'description': '',
                'in': 'path',
                'name': 'id',
                'required': True,
                'schema': {
                    'type': 'string',
                },
            }],
            'responses': {
                '200': {
                    'description': '',
                    'content': {
                        'application/json': {
                            'schema': {
                            },
                        },
                    },
                }, </s> remove             'operationId': 'listExamples',
 </s> add             'operationId': 'listDocStringExamples',
            'description': 'A description of my GET operation.', </s> remove         }]
 </s> add         } </s> remove     def get_description(self, path, method):
        """
        Determine a link description.

        This will be based on the method docstring if one exists,
        or else the class docstring.
        """
        view = self.view

        method_name = getattr(view, 'action', method.lower())
        method_docstring = getattr(view, method_name, None).__doc__
        if method_docstring:
            # An explicit docstring on the method or action.
            return self._get_description_section(view, method.lower(), formatting.dedent(smart_text(method_docstring)))
        else:
            return self._get_description_section(view, getattr(view, 'action', method.lower()), view.get_view_description())

    def _get_description_section(self, view, header, description):
        lines = [line for line in description.splitlines()]
        current_section = ''
        sections = {'': ''}

        for line in lines:
            if header_regex.match(line):
                current_section, seperator, lead = line.partition(':')
                sections[current_section] = lead.strip()
            else:
                sections[current_section] += '\n' + line

        # TODO: SCHEMA_COERCE_METHOD_NAMES appears here and in `SchemaGenerator.get_keys`
        coerce_method_names = api_settings.SCHEMA_COERCE_METHOD_NAMES
        if header in sections:
            return sections[header].strip()
        if header in coerce_method_names:
            if coerce_method_names[header] in sections:
                return sections[coerce_method_names[header]].strip()
        return sections[''].strip()

 </s> add 
            views.DocStringExampleListView,
          path = '/example/'
          method = 'GET'
  
          view = create_view(
            views.DocStringExampleListView,
              method,
              create_request(path)
          )
          inspector = AutoSchema()
          inspector.view = view
keep keep keep keep replace keep keep keep keep keep
 OpenAPI: Ported docstring operation description from CoreAPI inspector. (#6898) 
tests/schemas/test_openapi.py