Ejemplo n.º 1
0
 def introspect_operation(self, operation):
     return {
         'method_name': operation.py_name,
         'api_name': operation.name,
         'docs': html_to_rst(operation.documentation),
         'params': self.parse_params(operation.params),
         'output': operation.output,
     }
Ejemplo n.º 2
0
    def convert_docs(self, html):
        """
        Converts the service's HTML docs to reStructured Text.

        :param html: The HTML to convert
        :type html: string

        :returns: The converted text
        :rtype: string
        """
        return html_to_rst(html)