├── .gitignore ├── .travis.yml ├── LICENSE ├── Procfile ├── README.md ├── app ├── __init__.py ├── connectors │ ├── __init__.py │ ├── access_queue.py │ ├── email_wrapper.py │ ├── sms │ │ ├── __init__.py │ │ └── clients.py │ └── sms_wrapper.py ├── job │ ├── __init__.py │ ├── email_jobs.py │ ├── job_schedules.py │ └── sms_jobs.py ├── main │ ├── __init__.py │ ├── auth │ │ ├── __init__.py │ │ └── token_auth.py │ ├── encryption.py │ ├── errors.py │ ├── validators.py │ └── views │ │ ├── __init__.py │ │ ├── index.py │ │ ├── job.py │ │ ├── notification.py │ │ ├── organisation.py │ │ ├── service.py │ │ └── user.py └── models.py ├── application.py ├── config.py ├── json_schemas ├── create_user.json ├── email.json ├── email_address.json ├── job.json ├── service.json ├── sms.json └── user_authentication.json ├── migrations ├── README ├── alembic.ini ├── env.py ├── script.py.mako └── versions │ ├── 100_remove_org_from_service.py │ ├── 10_bootstrap.py │ ├── 110_add_restricted_to_service.py │ ├── 120_usage_table.py │ ├── 130_add_sender_name.py │ ├── 140_add_desc_to_notification.py │ ├── 150_add_filename_to_job.py │ ├── 160_crop_desc_notification.py │ ├── 170_token_type.py │ ├── 180_not_null_token_type.py │ ├── 190_remove_unique_mobile.py │ ├── 20_update_users.py │ ├── 30_remove_locked_column.py │ ├── 40_sent_at_column.py │ ├── 50_added_sender_id.py │ ├── 60_add_active_and_limit.py │ ├── 70_user_service_join_table.py │ ├── 80_add_mobile_to_user.py │ └── 90_remove_org_from_user.py ├── requirements.txt ├── requirements_for_test.txt ├── runtime.txt ├── scripts ├── __init__.py ├── bootstrap.sh ├── encrypt.py ├── run_app.sh └── run_tests.sh ├── setup.cfg └── tests ├── __init__.py ├── app ├── __init__.py ├── connectors │ ├── __init__.py │ └── test_access_queue.py ├── main │ ├── __init__.py │ └── views │ │ ├── __init__.py │ │ ├── test_api_common_features.py │ │ ├── test_job.py │ │ ├── test_notification.py │ │ ├── test_organisation.py │ │ ├── test_service.py │ │ └── test_user.py └── scheduled_jobs │ ├── __init__.py │ ├── test_email.py │ └── test_sms.py ├── conftest.py ├── test_api_setup.py ├── test_config.py ├── test_encryption.py └── test_validator.py /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/.gitignore -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/.travis.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/LICENSE -------------------------------------------------------------------------------- /Procfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/Procfile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/README.md -------------------------------------------------------------------------------- /app/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/__init__.py -------------------------------------------------------------------------------- /app/connectors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/connectors/access_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/connectors/access_queue.py -------------------------------------------------------------------------------- /app/connectors/email_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/connectors/email_wrapper.py -------------------------------------------------------------------------------- /app/connectors/sms/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/connectors/sms/clients.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/connectors/sms/clients.py -------------------------------------------------------------------------------- /app/connectors/sms_wrapper.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/connectors/sms_wrapper.py -------------------------------------------------------------------------------- /app/job/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/job/email_jobs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/job/email_jobs.py -------------------------------------------------------------------------------- /app/job/job_schedules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/job/job_schedules.py -------------------------------------------------------------------------------- /app/job/sms_jobs.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/job/sms_jobs.py -------------------------------------------------------------------------------- /app/main/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/__init__.py -------------------------------------------------------------------------------- /app/main/auth/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /app/main/auth/token_auth.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/auth/token_auth.py -------------------------------------------------------------------------------- /app/main/encryption.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/encryption.py -------------------------------------------------------------------------------- /app/main/errors.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/errors.py -------------------------------------------------------------------------------- /app/main/validators.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/validators.py -------------------------------------------------------------------------------- /app/main/views/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/__init__.py -------------------------------------------------------------------------------- /app/main/views/index.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/index.py -------------------------------------------------------------------------------- /app/main/views/job.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/job.py -------------------------------------------------------------------------------- /app/main/views/notification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/notification.py -------------------------------------------------------------------------------- /app/main/views/organisation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/organisation.py -------------------------------------------------------------------------------- /app/main/views/service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/service.py -------------------------------------------------------------------------------- /app/main/views/user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/main/views/user.py -------------------------------------------------------------------------------- /app/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/app/models.py -------------------------------------------------------------------------------- /application.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/application.py -------------------------------------------------------------------------------- /config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/config.py -------------------------------------------------------------------------------- /json_schemas/create_user.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/create_user.json -------------------------------------------------------------------------------- /json_schemas/email.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/email.json -------------------------------------------------------------------------------- /json_schemas/email_address.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/email_address.json -------------------------------------------------------------------------------- /json_schemas/job.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/job.json -------------------------------------------------------------------------------- /json_schemas/service.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/service.json -------------------------------------------------------------------------------- /json_schemas/sms.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/sms.json -------------------------------------------------------------------------------- /json_schemas/user_authentication.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/json_schemas/user_authentication.json -------------------------------------------------------------------------------- /migrations/README: -------------------------------------------------------------------------------- 1 | Generic single-database configuration. -------------------------------------------------------------------------------- /migrations/alembic.ini: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/alembic.ini -------------------------------------------------------------------------------- /migrations/env.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/env.py -------------------------------------------------------------------------------- /migrations/script.py.mako: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/script.py.mako -------------------------------------------------------------------------------- /migrations/versions/100_remove_org_from_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/100_remove_org_from_service.py -------------------------------------------------------------------------------- /migrations/versions/10_bootstrap.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/10_bootstrap.py -------------------------------------------------------------------------------- /migrations/versions/110_add_restricted_to_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/110_add_restricted_to_service.py -------------------------------------------------------------------------------- /migrations/versions/120_usage_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/120_usage_table.py -------------------------------------------------------------------------------- /migrations/versions/130_add_sender_name.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/130_add_sender_name.py -------------------------------------------------------------------------------- /migrations/versions/140_add_desc_to_notification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/140_add_desc_to_notification.py -------------------------------------------------------------------------------- /migrations/versions/150_add_filename_to_job.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/150_add_filename_to_job.py -------------------------------------------------------------------------------- /migrations/versions/160_crop_desc_notification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/160_crop_desc_notification.py -------------------------------------------------------------------------------- /migrations/versions/170_token_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/170_token_type.py -------------------------------------------------------------------------------- /migrations/versions/180_not_null_token_type.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/180_not_null_token_type.py -------------------------------------------------------------------------------- /migrations/versions/190_remove_unique_mobile.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/190_remove_unique_mobile.py -------------------------------------------------------------------------------- /migrations/versions/20_update_users.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/20_update_users.py -------------------------------------------------------------------------------- /migrations/versions/30_remove_locked_column.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/30_remove_locked_column.py -------------------------------------------------------------------------------- /migrations/versions/40_sent_at_column.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/40_sent_at_column.py -------------------------------------------------------------------------------- /migrations/versions/50_added_sender_id.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/50_added_sender_id.py -------------------------------------------------------------------------------- /migrations/versions/60_add_active_and_limit.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/60_add_active_and_limit.py -------------------------------------------------------------------------------- /migrations/versions/70_user_service_join_table.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/70_user_service_join_table.py -------------------------------------------------------------------------------- /migrations/versions/80_add_mobile_to_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/80_add_mobile_to_user.py -------------------------------------------------------------------------------- /migrations/versions/90_remove_org_from_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/migrations/versions/90_remove_org_from_user.py -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/requirements.txt -------------------------------------------------------------------------------- /requirements_for_test.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/requirements_for_test.txt -------------------------------------------------------------------------------- /runtime.txt: -------------------------------------------------------------------------------- 1 | python-3.4.3 2 | -------------------------------------------------------------------------------- /scripts/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /scripts/bootstrap.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/scripts/bootstrap.sh -------------------------------------------------------------------------------- /scripts/encrypt.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/scripts/encrypt.py -------------------------------------------------------------------------------- /scripts/run_app.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | python application.py runserver 4 | -------------------------------------------------------------------------------- /scripts/run_tests.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/scripts/run_tests.sh -------------------------------------------------------------------------------- /setup.cfg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/setup.cfg -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/connectors/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/connectors/test_access_queue.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/connectors/test_access_queue.py -------------------------------------------------------------------------------- /tests/app/main/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/main/views/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/__init__.py -------------------------------------------------------------------------------- /tests/app/main/views/test_api_common_features.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_api_common_features.py -------------------------------------------------------------------------------- /tests/app/main/views/test_job.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_job.py -------------------------------------------------------------------------------- /tests/app/main/views/test_notification.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_notification.py -------------------------------------------------------------------------------- /tests/app/main/views/test_organisation.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_organisation.py -------------------------------------------------------------------------------- /tests/app/main/views/test_service.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_service.py -------------------------------------------------------------------------------- /tests/app/main/views/test_user.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/main/views/test_user.py -------------------------------------------------------------------------------- /tests/app/scheduled_jobs/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/app/scheduled_jobs/test_email.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/scheduled_jobs/test_email.py -------------------------------------------------------------------------------- /tests/app/scheduled_jobs/test_sms.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/app/scheduled_jobs/test_sms.py -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_api_setup.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/test_api_setup.py -------------------------------------------------------------------------------- /tests/test_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/test_config.py -------------------------------------------------------------------------------- /tests/test_encryption.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/test_encryption.py -------------------------------------------------------------------------------- /tests/test_validator.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/alphagov/notify-api/HEAD/tests/test_validator.py --------------------------------------------------------------------------------