Browse Source

fix(docs): Fix url for MonitorEndpoint docs (#52579)

Richard Ortenberg 1 year ago
parent
commit
e537ad26a9
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/sentry/apidocs/hooks.py

+ 3 - 3
src/sentry/apidocs/hooks.py

@@ -47,19 +47,19 @@ def __get_explicit_endpoints() -> List[Tuple[str, str, str, Any]]:
 
 
     return [
     return [
         (
         (
-            "/api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/",
+            "/api/0/organizations/{organization_slug}/monitors/{monitor_slug}/checkins/",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/$",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/$",
             "GET",
             "GET",
             OrganizationMonitorCheckInIndexEndpoint.as_view(),
             OrganizationMonitorCheckInIndexEndpoint.as_view(),
         ),
         ),
         (
         (
-            "/api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/",
+            "/api/0/organizations/{organization_slug}/monitors/{monitor_slug}/checkins/",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/$",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/$",
             "POST",
             "POST",
             MonitorIngestCheckInIndexEndpoint.as_view(),
             MonitorIngestCheckInIndexEndpoint.as_view(),
         ),
         ),
         (
         (
-            "/api/0/organization/{organization_slug}/monitors/{monitor_slug}/checkins/{checkin_id}/",
+            "/api/0/organizations/{organization_slug}/monitors/{monitor_slug}/checkins/{checkin_id}/",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/$",
             r"^(?P<organization_slug>[^\/]+)/monitors/(?P<monitor_slug>[^\/]+)/checkins/(?P<checkin_id>[^\/]+)/$",
             "PUT",
             "PUT",
             MonitorIngestCheckInDetailsEndpoint.as_view(),
             MonitorIngestCheckInDetailsEndpoint.as_view(),