Commit Graph

1779 Commits

Author SHA1 Message Date
Nicholas Staples
92697d2671 Addedcors response. 2016-01-20 15:28:39 +00:00
Rebecca Law
9eb856b86e Get api_keys for service endpoint 2016-01-20 15:24:13 +00:00
Chris Hill-Scott
76c228a550 Merge pull request #25 from alphagov/fix_revoke_endpoint
Update api-key/revoke endpoint to expire the key for the service.
2016-01-20 15:20:19 +00:00
Rebecca Law
2689d908c1 Update api-key/revoke endpoint to expire the key for the service.
Previously we assumed there was only one api key that was valid.
2016-01-20 14:48:44 +00:00
Nicholas Staples
50c3f3dc55 Bump of requirement version. 2016-01-20 14:28:17 +00:00
NIcholas Staples
4a3fae7580 Merge pull request #23 from alphagov/allow-multiple-api-keys
Allow multiple api keys
2016-01-20 14:13:29 +00:00
Rebecca Law
cbc3a1fa0e Merge pull request #24 from alphagov/add_notification_email_endpoint
Added send_email endpoint.
2016-01-20 13:58:08 +00:00
Nicholas Staples
4739f3fbd2 Added send_email endpoint. 2016-01-20 13:14:23 +00:00
Rebecca Law
27a381c3e9 Allow services to have multiple api keys.
/service/<service_id>/api-key/renew has been renamed to /service/<service_id>/api-key
/service/<service_id>/api-key now creates a token and no longer expires the existing api key.
Moved test for this endpoint to it's own file.
2016-01-20 10:57:46 +00:00
Rebecca Law
1db57dca8c Allow for multiple api keys for a service. 2016-01-19 18:25:21 +00:00
Martyn Inglis
811e7c1bec Bumped API client version 2016-01-19 17:23:07 +00:00
Martyn Inglis
7c23a08786 Bumped API client version 2016-01-19 17:21:06 +00:00
Adam Shimali
f18071084e Merge pull request #18 from alphagov/proxy-to-alpha
Proxy to alpha
2016-01-19 16:02:42 +00:00
Rebecca Law
d20e9fe349 Merge pull request #22 from alphagov/fix-status-checks
Removed Status endpoints from requiring Auth tokens
2016-01-19 15:34:56 +00:00
Martyn Inglis
fa30782d70 Removed Status endpoints from requiring Auth tokens
- auth tests now use service endpoints

- one test commented out and needs reworked
2016-01-19 15:32:33 +00:00
Rebecca Law
8c43ccac7e Merge pull request #21 from alphagov/aws-upgrades
Added AWS files to
2016-01-19 15:01:04 +00:00
minglis
9d7b49e969 Merge pull request #20 from alphagov/create-admin-client-token
Remove config that is no longer used
2016-01-19 14:52:55 +00:00
Martyn Inglis
742a567036 Added AWS files to
- upgrade database
- use credstash for secret overrides
2016-01-19 14:50:42 +00:00
Rebecca Law
15578cfdb7 Remove config that is no longer used 2016-01-19 14:21:03 +00:00
Martyn Inglis
7ecede46e5 Merge branch 'master' into proxy-to-alpha
Conflicts:
	config.py
2016-01-19 14:11:20 +00:00
Adam Shimali
6141a11e7f Merge pull request #19 from alphagov/create-admin-client-token
Authentication for admin client api calls where a user and service is…
2016-01-19 14:08:42 +00:00
Rebecca Law
d15e68238d Authentication for admin client api calls where a user and service is not required. 2016-01-19 14:01:26 +00:00
Martyn Inglis
a56c7f59d3 Fixed test that had a clash on user ids 2016-01-19 13:59:45 +00:00
Martyn Inglis
346bc9feac Merge branch 'master' into proxy-to-alpha 2016-01-19 13:49:54 +00:00
Martyn Inglis
7b756567af Updated tests for fetch notifications by id, not simply fetch all 2016-01-19 13:45:57 +00:00
NIcholas Staples
571661ceb0 Merge pull request #17 from alphagov/create-api-keys
Replace Tokens with Api keys
2016-01-19 13:14:28 +00:00
Rebecca Law
15b2d414cc Updates from review comments:
Update api_key relationship.
Check that id in dict exists before deleting it
2016-01-19 13:11:22 +00:00
Rebecca Law
43d54b6ad3 Update the down revision to the version 0006 file. 2016-01-19 12:17:01 +00:00
Rebecca Law
56b33496ff Added name to api key when creating key for admin user.
NOTE: this will change in the next PR
2016-01-19 12:13:47 +00:00
Rebecca Law
4fc5c34320 Change Tokens to ApiKey
Added name to ApiKey model
2016-01-19 12:13:47 +00:00
Rebecca Law
6966c2484f Merge pull request #16 from alphagov/move-users-to-api
Add rest of user model fields to api.
2016-01-19 12:09:39 +00:00
Adam Shimali
44824c9985 Update error message for password to match marshmallow errors. 2016-01-19 12:07:14 +00:00
Adam Shimali
f839bae1f5 Add rest of user model fields to api.
First step to moving user interactions to api.
2016-01-19 11:39:59 +00:00
Martyn Inglis
d275ba83a2 Added endpoints for the proxy to notifications.
- this uses alpha API for delivery
- no DB model included as just proving
- all notifications for same service at the moment (!)
2016-01-19 11:23:09 +00:00
Adam Shimali
6c7fb42272 Merge pull request #15 from alphagov/remove_test_view_folders
Remove views from test module
2016-01-18 11:21:51 +00:00
Rebecca Law
5543e1b812 Remove views from test module 2016-01-18 11:19:22 +00:00
Adam Shimali
afdff57f32 Merge pull request #14 from alphagov/default_admin_user
Manager command to create an admin user for the environment.
2016-01-18 11:07:06 +00:00
Rebecca Law
8ace626320 Fix code style 2016-01-18 11:03:38 +00:00
Rebecca Law
615852e067 Merge pull request #13 from alphagov/fix-job-url
Fix for job urls that should have been within context of a service.
2016-01-18 11:00:11 +00:00
Rebecca Law
c4e5ab7c77 Manager command to create an admin user for the environment. 2016-01-18 10:56:26 +00:00
Adam Shimali
f4a0a9b8d9 Fix for job urls that should have been within context of a service.
The service id path parameter is captured in the url prefix for the
job blueprint.
2016-01-18 09:57:04 +00:00
Rebecca Law
56f455fe3a Merge pull request #12 from alphagov/add-job-fields
Add convenience fields to job to make processing
2016-01-18 09:54:24 +00:00
Adam Shimali
f3b6769193 Add convenience fields to job to make processing
easier.
2016-01-16 10:14:48 +00:00
Adam Shimali
4d8a023f11 Merge pull request #11 from alphagov/require_auth
Implementation for jwt authorization tokens
2016-01-15 19:22:27 +00:00
Rebecca Law
96ba2d13b3 Updated job endpoint tests with authorization header 2016-01-15 17:11:02 +00:00
Rebecca Law
b05ad17029 Remove trailing slashing from urls 2016-01-15 17:02:29 +00:00
Rebecca Law
e2e494c30b Remove trailing slash from template url 2016-01-15 17:02:29 +00:00
Rebecca Law
0ad292300d Added authorization headers for all requests 2016-01-15 17:02:29 +00:00
Rebecca Law
5f59b631e1 Added the before_request so that all calls must have a valid token.
Next is to get all the rest tests to pass again.
2016-01-15 17:01:26 +00:00
Rebecca Law
37b571235f Merge pull request #10 from alphagov/add-job-api
Added endpoints for creating job, and getting job/jobs.
2016-01-15 16:57:09 +00:00