25 Commits

Author SHA1 Message Date
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376 2020-06-09 15:16:39 +03:00
Pēteris Caune
76ae42bc8f
"Get a single check" API call now supports read-only API keys. Fixes #346 2020-03-24 16:10:42 +02:00
James Kirsop
6373db8aa1 Changes to prototype this for testing with real data 2020-03-23 10:58:02 +11:00
Pēteris Caune
5e051d53f8
Validate channel identifiers before creating/updating a check. Fixes #335 2020-02-20 10:43:40 +02:00
Pēteris Caune
cde1f50ac2
API: update check's "alert_after" field when changing schedule 2020-02-19 12:45:33 +02:00
Pēteris Caune
fb527e4ed8
Security: check channel ownership when setting check's channels via API 2020-02-19 12:19:51 +02:00
Pēteris Caune
435659166c
Don't let SuspiciousOperation bubble up when validating channel ids in API 2020-02-19 11:43:42 +02:00
Pēteris Caune
ccd30ac239
Stricter cron validation, reject schedules like "At midnight of February 31" 2020-02-07 11:38:50 +02:00
Pēteris Caune
bffb51357e
Add desc to hc.api.schemas.check 2019-12-18 09:11:34 +02:00
Bram Daams
1b3d7e8c0a being able to set/update the description of a check when creating/updating using the api 2019-12-17 15:47:13 +01:00
Pēteris Caune
cdfc9840a7
Source formatted with Black 2019-05-15 14:27:50 +03:00
Pēteris Caune
0994006603
Drop Check.user_id and Channel.user_id (obsolete, using project_id now) 2019-01-18 17:24:02 +02:00
Pēteris Caune
965998df18
Fix tests. 2019-01-14 11:28:10 +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
440a143dd6
Add CORS support to API endpoints. Fixes #208 2018-12-06 17:36:20 +02:00
Pēteris Caune
66bc5cd7c2
Validate channel identifiers as UUIDs 2018-11-10 11:42:31 +02:00
Pēteris Caune
16d78db72e
Refactoring and a testcase for channels=None 2018-11-08 11:59:04 +02:00
Pēteris Caune
e866d63ca4
Split into smaller separate testcases. 2018-11-08 11:38:55 +02:00
Andrew DeMaria
824729707e Allow specific channel uuid to be specified in create/update check api 2018-11-07 15:17:20 -07:00
Pēteris Caune
182f9e1109
Refactor API key checking code 2018-10-29 18:34:58 +02:00
Pēteris Caune
d661839e32
Don't serialize POST payload to JSON, Django's TestClient will do that for us. 2018-08-04 19:07:40 +03:00
Pēteris Caune
ef6e1870d9
Preliminary Django 2 support 2018-04-24 22:38:02 +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
31eca9c8e8 API: fix updating kind=cron to kind=simple 2017-03-10 09:54:16 +02:00
Pēteris Caune
20b046cba7 API call for updating checks 2017-02-19 13:46:05 +02:00