From b71a657dea2e1dbc3168b3930fa10e0eca90a5a9 Mon Sep 17 00:00:00 2001 From: Simon Larsen Date: Thu, 9 Jan 2025 18:38:38 +0000 Subject: [PATCH] feat: update API documentation to reflect POST method for status page endpoints --- Docs/Content/status-pages/public-api.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Docs/Content/status-pages/public-api.md b/Docs/Content/status-pages/public-api.md index a85cde09ae1..a3a73ea21a7 100644 --- a/Docs/Content/status-pages/public-api.md +++ b/Docs/Content/status-pages/public-api.md @@ -9,7 +9,7 @@ This API will fetch all the resources that are on the status page including the To get overall status of the resources on the status page, you can make a GET request to the following endpoint: ```bash -curl -X GET https://oneuptime.com/status-page-api/overview/:statusPageId +curl -X POST https://oneuptime.com/status-page-api/overview/:statusPageId ``` This is the response from the API: @@ -155,7 +155,7 @@ This is the response from the API: This API will fetch all the incidents that are on the status page. To get all the incidents on the status page, you can make a GET request to the following endpoint: ```bash -curl -X GET https://oneuptime.com/status-page-api/incidents/:statusPageId +curl -X POST https://oneuptime.com/status-page-api/incidents/:statusPageId ``` This is the response from the API: @@ -181,7 +181,7 @@ This is the response from the API: This API will fetch all the scheduled maintenance that are on the status page. To get all the scheduled maintenance on the status page, you can make a GET request to the following endpoint: ```bash -curl -X GET https://oneuptime.com/status-page-api/scheduled-maintenance/:statusPageId +curl -X POST https://oneuptime.com/status-page-api/scheduled-maintenance/:statusPageId ``` This is the response from the API: @@ -206,7 +206,7 @@ This is the response from the API: This API will fetch all the announcements that are on the status page. To get all the announcements on the status page, you can make a GET request to the following endpoint: ```bash -curl -X GET https://oneuptime.com/status-page-api/announcements/:statusPageId +curl -X POST https://oneuptime.com/status-page-api/announcements/:statusPageId ``` This is the response from the API: