def get_project_ids(config, modeling_application):
    """ Get a list of the ids of models in the source database for a particular modeling application (e.g., XPP)

    Args:
        config (:obj:`dict`): configuration
        modeling_application (:obj:`str`): modeling application (e.g., ``XPP``)

    Returns:
        :obj:`list` of :obj:`int`: ids of projects
    """
    response = config['source_session'].get(config['source_api_endpoint'] + '/models?modeling_application={}'.format(modeling_application))
    response.raise_for_status()
    projects = response.json()
    projects.sort()
    return projects