def get_apis(self):
result = []<EOL>paths_dict = self.swagger.get("<STR_LIT>", {})<EOL>binary_media_types = self.get_binary_media_types()<EOL>for full_path, path_config in paths_dict.items():<EOL><INDENT>for method, method_config in path_config.items():<EOL><INDENT>function_name = self._get_integration_function_name(method_config)<EOL>if not function_name:<EOL><INDENT>LOG.debug("<STR_LIT>",<EOL>full_path, method)<EOL>continue<EOL><DEDENT>if method.lower() == self._ANY_METHOD_EXTENSION_KEY:<EOL><INDENT>method = self._ANY_METHOD<EOL><DEDENT>api = Api(path=full_path, method=method, function_name=function_name, cors=None,<EOL>binary_media_types=binary_media_types)<EOL>result.append(api)<EOL><DEDENT><DEDENT>return result<EOL>
Parses a swagger document and returns a list of APIs configured in the document.

Swagger documents have the following structure
{
    "/path1": {    # path
        "get": {   # method
            "x-amazon-apigateway-integration": {   # integration
                "type": "aws_proxy",

                # URI contains the Lambda function ARN that needs to be parsed to get Function Name
                "uri": {
                    "Fn::Sub":
                        "arn:aws:apigateway:aws:lambda:path/2015-03-31/functions/${LambdaFunction.Arn}/..."
                }
            }
        },
        "post": {
        },
    },
    "/path2": {
        ...
    }
}

Returns
-------
list of samcli.commands.local.lib.provider.Api
    List of APIs that are configured in the Swagger document