Pēteris Caune
98eb7cc14a
Add /api/v1/badges/ endpoint
cc: #552
3 years ago
Pēteris Caune
3901a2825b
Replace str(exc) with exc.message to make CodeQL happy
3 years ago
Pēteris Caune
742af7bfd8
Remove unused return statement
4 years ago
Pēteris Caune
05db43f95d
Fix the pause action to clear Profile.next_nag_date if all checks up
4 years ago
Pēteris Caune
44a677f327
Fix hc.api.views.notification_status to always return 200
If the notification does not exist, or is more than a hour
old, return HTTP 200 (instead of 400 or 404) so the other
party doesn't retry over and over again.
4 years ago
Pēteris Caune
617bd92434
Add Ping.exitstatus field, store received exit status values in db
Fixes #455
4 years ago
Pēteris Caune
524d1a7375
Implement badge mode (up/down vs up/late/down) selector
Fixes #282
4 years ago
Pēteris Caune
81e59ac553
Add support for script's exit status in ping URLs
Fixes : #429
4 years ago
Pēteris Caune
6f56ed7f92
Reduce the number of SQL queries used in the "Get Checks" API call
4 years ago
Pēteris Caune
7e56156d32
Optimize the "Update Check" API call
In the "Update Check" API call, if no fields have changed,
don't save the changes to the database.
4 years ago
Pēteris Caune
0e77064c44
Update API to allow specifying channels by names
Fixes : #440
4 years ago
Pēteris Caune
b64c8d1cb8
API support for setting the allowed HTTP methods for making ping requests
4 years ago
Pēteris Caune
8ea510cda6
Removing unused /api/v1/notifications/{uuid}/bounce endpoint
4 years ago
Pēteris Caune
a29b82a0ed
In api.views.notification_status, always return HTTP 200 so the other party doesn't retry over and over again
4 years ago
Pēteris Caune
ae01c7a9d1
Handle Twilio status callbacks for SMS, WhatsApp and phone call notifications.
4 years ago
Pēteris Caune
95d58d26d5
Handle status callbacks from Twilio, show SMS delivery failures in the Integrations page.
4 years ago
Pēteris Caune
a18eb134f5
Refactor: change Check.get_status(with_started=...) default value from True to False (with_started=False is or will be useful in more places)
4 years ago
Pēteris Caune
832580f343
Simplify hc.api.views.flips, add validation and more tests.
4 years ago
James Kirsop
368d7a4fec
Commit with requested changes and tests
4 years ago
James Kirsop
c5c4e0f782
Returning all historical flips if no parameters are passed
4 years ago
James Kirsop
90d4246848
Second interation of this
4 years ago
James Kirsop
aaadf6031f
Sample work for review
5 years ago
Pēteris Caune
cdafc06c65
In urls.py, route "api/v1/checks/<sha1:unique_key>" directly to the hc.api.views.get_check_by_unique_key view.
Minor API documentation edits.
4 years ago
James Kirsop
8725c81144
Implementing new changes discussed to resolve #370
4 years ago
Pēteris Caune
fd4d59c4e1
API, optimization: avoid retrieving project twice from the database
5 years ago
Pēteris Caune
a07325e40f
Add "Get a list of checks's logged pings" API call ( #371 )
5 years ago
Pēteris Caune
461ef5e088
Paused ping handling can be controlled via API. Fixes #376
5 years ago
Pēteris Caune
3730c67c80
Return max notification_id in metrics.
5 years ago
Pēteris Caune
98310eeeaa
Include timestamp in the metrics response.
5 years ago
Pēteris Caune
edbfd4b437
Added /api/v1/metrics/ endpoint, useful for monitoring the service itself
5 years ago
Pēteris Caune
8c7d3570a5
Remove unused imports, cleanup.
5 years ago
James Kirsop
010bbc9507
Sample work for review
5 years ago
Pēteris Caune
76ae42bc8f
"Get a single check" API call now supports read-only API keys. Fixes #346
5 years ago
Pēteris Caune
da4cf5241e
Minor cleanup, update CHANGELOG
5 years ago
James Kirsop
6373db8aa1
Changes to prototype this for testing with real data
5 years ago
James Kirsop
d88f99a712
Changes to prototype this for testing with real data
5 years ago
Pēteris Caune
5e051d53f8
Validate channel identifiers before creating/updating a check. Fixes #335
5 years ago
Pēteris Caune
cde1f50ac2
API: update check's "alert_after" field when changing schedule
5 years ago
Pēteris Caune
fb527e4ed8
Security: check channel ownership when setting check's channels via API
5 years ago
Pēteris Caune
435659166c
Don't let SuspiciousOperation bubble up when validating channel ids in API
5 years ago
Pēteris Caune
b8108906f4
hc.api.views.bounce updates Channel.last_error
5 years ago
Pēteris Caune
c521b44d20
hc.api.views.bounce handles transient email bounces (logs error, does not disable the integration)
5 years ago
Bram Daams
1b3d7e8c0a
being able to set/update the description of a check when creating/updating using the api
5 years ago
Pēteris Caune
8d81d27af3
Unsubscribe links serve a form, and require HTTP POST to actually unsubscribe
5 years ago
Pēteris Caune
22d4d55340
Added support for Shields.io badges. cc: #304 , #305
5 years ago
Pēteris Caune
3f19181028
"Filtering Rules" dialog, an option to require HTTP POST. Fixes #297
5 years ago
Pēteris Caune
1f1b1aedca
Don't include ping URLs in API responses when the read-only key is used
5 years ago
Pēteris Caune
cdfc9840a7
Source formatted with Black
6 years ago
Pēteris Caune
1b948f4d5a
Show check counts in JSON "badges". Fixes #251
6 years ago
Pēteris Caune
0994006603
Drop Check.user_id and Channel.user_id (obsolete, using project_id now)
6 years ago