def _make_operation(self, method):
        view_function = self.app.view_functions.get(self.rule.endpoint)

        operation = {
            'method': method,
            'nickname': self.rule.endpoint,
            'parameters': [],
            'summary': '',
            'responseMessages': []
        }

        lines = [line for line in (getdoc(view_function) or '').splitlines()]
        operation['summary'] = self._make_summary(lines)
        notes = self._make_notes(lines)
        if len(notes) > 0:
            operation['notes'] = notes
        operation['parameters'] = self._make_parameters(lines)
        operation['responseMessages'] = self._make_status_codes(lines)
        return operation
Parse one entry in a mailcap file and return a dictionary.
dataset/ETHPy150Open martinp/flask-swagger/flask_swagger/__init__.py/APIEndpoint._make_operation--crossover with--dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/mailcap.py/parseline