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
Nicholas Staples
49e98c21e7
Service and User API added, working with tests. Still need to polish the edges and add more tests.
2016-01-11 15:07:13 +00:00
Nicholas Staples
0bc4d02713
Work in progress, skeleton of the api created and testing started. Need to fix authentication tests.
2016-01-08 17:51:46 +00:00
Nicholas Staples
5bcc615825
Added dao, test framework and tests for dao.
2016-01-08 12:18:12 +00:00
Nicholas Staples
a327702ad0
Initial code added for models and services not functional yet. Bootstrap and migrations added for db.
2016-01-07 17:50:55 +00:00
Martyn Inglis
4caf0fcad6
Fixing pull requests comments
...
- full path to imports
- renamed client lib from jwt->authentication
2015-12-15 14:36:57 +00:00
Martyn Inglis
87138c86f8
Fix failing build - test deliberatly moved to error for some investigations. Fixed now.
2015-12-15 11:54:16 +00:00
Martyn Inglis
dbf70ec1eb
First pass at implementing API authentication using new JWT tokens
...
- NOTE - this does not manage secrets. There is only one URL and there is no functionality implemented
- prior to rolling out we need to store secrets properly
Uses the JWT libraries in [https://github.com/alphagov/notifications-python-client ](https://github.com/alphagov/notifications-python-client )
- Tokens are checked on every request and will be rejected if token is invalid as per the rules in the python clients.
2015-12-15 10:47:20 +00:00
Martyn Inglis
6deaa61011
Implement a JWT header into base client
...
- adds a base client
- adds a notifications client
These do not proxy onto genuine methods. This pull request is the basic implication of the API Client. Still needs a few things before is ready, notably proper logging and actual API endpoints to hook into.
Basic premise is to deliver the JWT tokens required for Notify API authentication so we can discuss the implementation/premise.
2015-12-11 16:57:00 +00:00
Rebecca Law
3d59c72e17
Initial version of the notify-notifications-api
2015-11-18 17:02:25 +00:00