From df9788333992f0f0d28f1d164773a5472263dcb1 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Sun, 5 May 2024 15:23:13 +0200 Subject: [PATCH] Add an api/external endpoint that lists the external services we use. --- app/classes/ReleaseInsights/Request.php | 1 + app/controllers/api/external.php | 7 +++++++ app/models/about.php | 4 ++++ app/models/api/external.php | 5 +++++ tests/Functional/api.php | 1 + 5 files changed, 18 insertions(+) create mode 100644 app/controllers/api/external.php create mode 100644 app/models/api/external.php diff --git a/app/classes/ReleaseInsights/Request.php b/app/classes/ReleaseInsights/Request.php index b924225..79d524f 100644 --- a/app/classes/ReleaseInsights/Request.php +++ b/app/classes/ReleaseInsights/Request.php @@ -65,6 +65,7 @@ public function getController(): string '/about/' => 'about', '/nightly/' => 'nightly', '/release/' => 'release', + '/api/external/' => 'api/external', '/api/nightly/' => 'api/nightly', '/api/release/schedule/' => 'api/release_schedule', '/api/esr/releases/' => 'api/esr_releases', diff --git a/app/controllers/api/external.php b/app/controllers/api/external.php new file mode 100644 index 0000000..bff2801 --- /dev/null +++ b/app/controllers/api/external.php @@ -0,0 +1,7 @@ +api/nightly/?date={$yesterday} Provides the list of nightly build IDs for a day and the changeset they were built from (data from buildhub) + + api/external/ + Gives the list of external APIs this site depends on to build data. + api/nightly/crashes/?buildid=20190927094817 Gives the crashes for a buildID (data from Socorro) diff --git a/app/models/api/external.php b/app/models/api/external.php new file mode 100644 index 0000000..1977646 --- /dev/null +++ b/app/models/api/external.php @@ -0,0 +1,5 @@ +