19 Commits

Author SHA1 Message Date
Pēteris Caune
35b137a8d7
Allow caching CORS responses. 2019-07-04 12:50:01 +03:00
Pēteris Caune
1f1b1aedca
Don't include ping URLs in API responses when the read-only key is used 2019-07-04 09:36:27 +03:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
c08f02ab7f
Drop Profile.api_key and Profile.api_key_readonly (both are stored with Project now) 2019-01-17 16:26:45 +02:00
Pēteris Caune
6b7f212c8a
Use the api keys from project, not user profile 2019-01-12 21:34:45 +02:00
Pēteris Caune
1c69cf7f89
Project model. cc: #183 2019-01-12 16:40:21 +02:00
Pēteris Caune
440a143dd6
Add CORS support to API endpoints. Fixes #208 2018-12-06 17:36:20 +02:00
Pēteris Caune
432e592e44
Add read-only API key support 2018-10-29 21:44:34 +02:00
Pēteris Caune
182f9e1109
Refactor API key checking code 2018-10-29 18:34:58 +02:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +03:00
Pēteris Caune
a62350cdad In the "List checks" API response, the "next_ping" date was incorrect for checks using cron syntax. Fixed. 2017-06-29 14:41:13 +03:00
Pēteris Caune
47d93c2522 Stricter UUID validation. 2017-06-08 17:02:26 +03:00
Pēteris Caune
5dafc07c29 Return 403 when API key is wrong. Return 404 when resource not found. Return 405 when request method is wrong. Return 400 when request syntax is wrong. 2017-03-10 10:35:21 +02:00
Pēteris Caune
c5568b6dd1 Move json validation code to a separate file, add support for array and enum, add tests. 2016-09-23 14:08:31 +03:00
Pēteris Caune
af997446f3 Add support for authentication with X-Api-Key header. 2016-07-07 20:07:10 +03:00
Pēteris Caune
5725a3a30a Use six.string_types. This hopefully fixes python 2 test failures. 2016-02-16 23:50:41 +02:00
Pēteris Caune
5d2edfa4a0 First stab at API, POST /api/v1/checks 2016-02-16 23:41:40 +02:00
Pēteris Caune
947f686c61 Organize imports using isort. 2015-11-02 23:55:33 +02:00
Pēteris Caune
969626c0fa Validate UUID, more tests. 2015-07-28 20:46:17 +03:00