def _create_resource(self, file_path, method, url_path):
        resource = Resource(method, url_path)

        # resource description
        resource_description_path = os.path.join(
            file_path, "%s_doc.md" % method)
        resource_description = read_file(resource_description_path)

        if resource_description:
            resource.description = resource_description

        # upstream server
        resource.upstream_server = \
            self.application_data.get_upstream_server(
                "%s-%s" % (method, file_path[len(self.api_dir):]))

        return resource
dataset/ETHPy150Open tomashanacek/mock-server/mock_server/methodslisting.py/ResourcesLoader._create_resource/original