Rebecca Law
8fa1cac1c6
Fix the user url.
...
Add test for authentication to test paths with path params
2016-01-22 09:59:02 +00:00
Nicholas Staples
6b035cd324
All tests working, second time around.
2016-01-21 17:29:24 +00:00
Rebecca Law
2486c17dc9
Add unique constraint for api_key on service_id and name
2016-01-21 16:53:53 +00:00
Rebecca Law
0027b62224
Updated get_api_keys endpoint to return one or many given key_id or not.
2016-01-21 12:13:17 +00:00
Adam Shimali
eeffd4c6e2
Merge pull request #28 from alphagov/verify_user_password
...
Added user verify password endpoint.
2016-01-20 17:07:23 +00:00
Nicholas Staples
0ec69b89ee
Added user verify password endpoint.
2016-01-20 16:25:18 +00:00
Rebecca Law
dada8bb75e
Fix test so that the order of the list does not matter
2016-01-20 16:12:11 +00:00
Rebecca Law
3e141e05cb
Added tests for get api endpoint
2016-01-20 15:41:19 +00:00
Rebecca Law
9eb856b86e
Get api_keys for service endpoint
2016-01-20 15:24:13 +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
4a3fae7580
Merge pull request #23 from alphagov/allow-multiple-api-keys
...
Allow multiple api keys
2016-01-20 14:13:29 +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
Adam Shimali
f18071084e
Merge pull request #18 from alphagov/proxy-to-alpha
...
Proxy to alpha
2016-01-19 16:02:42 +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
Martyn Inglis
7ecede46e5
Merge branch 'master' into proxy-to-alpha
...
Conflicts:
config.py
2016-01-19 14:11:20 +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
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
4fc5c34320
Change Tokens to ApiKey
...
Added name to ApiKey model
2016-01-19 12:13:47 +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
Rebecca Law
5543e1b812
Remove views from test module
2016-01-18 11:19:22 +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
Adam Shimali
f3b6769193
Add convenience fields to job to make processing
...
easier.
2016-01-16 10:14:48 +00:00
Rebecca Law
96ba2d13b3
Updated job endpoint tests with authorization header
2016-01-15 17:11:02 +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
Adam Shimali
834801d19b
Added endpoints for creating job, and getting job/jobs.
2016-01-15 15:48:05 +00:00
Adam Shimali
012cff5ae2
test cleanup with fixtures
2016-01-15 12:16:07 +00:00
Adam Shimali
b9f6db1856
Added model and dao for Jobs.
2016-01-15 11:12:05 +00:00
Rebecca Law
436f45b70d
Moved the _generate_token methods to the tokens_dao.
2016-01-14 11:30:45 +00:00
Rebecca Law
255dddaa27
Changed the token endpoints so that you can renew a token and revoke a token.
...
Updated create service so the token is created at that time
2016-01-14 10:18:11 +00:00
Rebecca Law
a6dda26ba1
Added test that the token can be signed and retrieved
2016-01-14 10:18:11 +00:00
Rebecca Law
725b976d31
Created endpoints for create and delete token.
2016-01-14 10:17:36 +00:00
Rebecca Law
3a3f9becec
Add api_token model and dao
2016-01-14 10:15:28 +00:00
Nicholas Staples
070d1d97eb
Test added specifically for unicode content.
2016-01-13 13:01:04 +00:00
Nicholas Staples
99820b3e85
More tests for rest and dao.
2016-01-13 12:14:21 +00:00
Nicholas Staples
dad0fff4ba
Template rest api skeleton added.
2016-01-13 11:04:13 +00:00
Nicholas Staples
81cd230a79
More tests added.
2016-01-12 10:59:27 +00:00
Nicholas Staples
31f10c7457
Added delete endpoint and tests.
2016-01-12 10:39:49 +00:00
Nicholas Staples
752a359d3d
Added versions file for initial db and fixed tests.
2016-01-12 09:56:42 +00:00
Nicholas Staples
3397274b83
Test add.
2016-01-12 09:31:52 +00:00
Nicholas Staples
308e2cb7de
More tests.
2016-01-12 09:28:01 +00:00
Nicholas Staples
2be72d3536
Add more tests.
2016-01-11 18:09:10 +00:00
Nicholas Staples
74547013ba
All four http methods working now for user and service restful apis.
2016-01-11 17:19:06 +00:00