def make_resources(app, base_path, resource_path=None, description=None,
                   api_version='1', swagger_version='1.2'):
    resource_path = resource_path or urlparse(base_path).path
    builder = APIBuilder(app, resource_path)
    return {
        'apiVersion': api_version,
        'swaggerVersion': swagger_version,
        'basePath': base_path,
        'resourcePath': resource_path,
        'apis': builder.make_apis(description)
    }
Find a source in the database, create it if it doesn't exist yet.
dataset/ETHPy150Open martinp/flask-swagger/flask_swagger/__init__.py/make_resources--crossover with--dataset/ETHPy150Open lalinsky/acoustid-server/acoustid/data/source.py/find_or_insert_source