mirror of
https://github.com/healthchecks/healthchecks.git
synced 2026-04-25 15:05:49 +03:00
[PR #737] [MERGED] Allow to retrieve a ping's body #1020
Labels
No labels
bug
bug
bug
feature
good-first-issue
new integration
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/healthchecks#1020
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/healthchecks/healthchecks/pull/737
Author: @lablans
Created: 11/23/2022
Status: ✅ Merged
Merged: 11/28/2022
Merged by: @cuu508
Base:
master← Head:feature/retrievecheckswithbody📝 Commits (10+)
6790e04Allow to retrieve pings with their bodies via the API68cf550Reformat using black0dadf30Add documentationea84f60Revert ?with_body=true variant27951a2Allow to retrieve pings with their bodies via the API (via extra endpoint)a13879cAdd documentation3a95336Reformat using blackeca71baMerge branch 'master' into feature/retrievecheckswithbody4824c89Remove unnecessary annotationf9cdf9eConstruct body_url using django's reverse()📊 Changes
6 files changed (+140 additions, -8 deletions)
View changed files
📝
hc/api/models.py(+7 -0)📝
hc/api/tests/test_ping.py(+15 -0)📝
hc/api/urls.py(+5 -0)📝
hc/api/views.py(+24 -0)📝
templates/docs/api.html(+41 -4)📝
templates/docs/api.md(+48 -4)📄 Description
This PR adds a new query parameter to the
/api/v1/checks/<uuid>/pings/API endpoint. If set to true, returned pings will contain their respective request bodies (if present). See the added documentation for more information.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.