Rebecca Law
5a937d6e71
Added user_id as a query param for get_services.
...
Need to add this query param for the services page on the admin app.
Do not add the query param to path in the token.
2016-01-22 12:47:59 +00:00
Nicholas Staples
e657958af4
Templates fix with tests working.
2016-01-22 10:44:34 +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
Rebecca Law
98c73e5bff
Correction to url name
2016-01-20 16:34:30 +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
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
Rebecca Law
b05ad17029
Remove trailing slashing from urls
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
d834277297
Fix code style
2016-01-14 16:24:25 +00:00
Rebecca Law
010408d98a
Remove the view packages
2016-01-14 16:13:27 +00:00