diff options
author | David Reyna <David.Reyna@windriver.com> | 2017-07-28 17:14:13 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-07-31 15:13:53 +0100 |
commit | 3bc3d26b465b5af3cebc1d4c0d1fa382965c32cf (patch) | |
tree | 6723a54029a4a3c5eaa75d19eae07aec792c792d /bitbake/lib/toaster/toastergui/urls.py | |
parent | 3f71378fdeed0d5f18eb7c58776fd313a0ab8fe3 (diff) | |
download | poky-3bc3d26b465b5af3cebc1d4c0d1fa382965c32cf.tar.gz |
bitbake: toaster: enable remote HTTP API for status aggregation
Add support for Toaster aggregators with a set of api links that
return JSON data for (a) builds in progress, (b) builds completed,
(c) specific build data, and (d) an is-alive health ping link.
[YOCTO #11794]
(Bitbake rev: d8e79661c69671dd424dca5cc3f7f2f855b0afed)
Signed-off-by: David Reyna <David.Reyna@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/urls.py')
-rw-r--r-- | bitbake/lib/toaster/toastergui/urls.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/urls.py b/bitbake/lib/toaster/toastergui/urls.py index 6aebc3f833..3ad5566b1d 100644 --- a/bitbake/lib/toaster/toastergui/urls.py +++ b/bitbake/lib/toaster/toastergui/urls.py | |||
@@ -244,6 +244,11 @@ urlpatterns = [ | |||
244 | url(r'^mostrecentbuilds$', widgets.MostRecentBuildsView.as_view(), | 244 | url(r'^mostrecentbuilds$', widgets.MostRecentBuildsView.as_view(), |
245 | name='most_recent_builds'), | 245 | name='most_recent_builds'), |
246 | 246 | ||
247 | # default redirection | 247 | # JSON data for aggregators |
248 | url(r'^api/builds$', views.json_builds, name='json_builds'), | ||
249 | url(r'^api/building$', views.json_building, name='json_building'), | ||
250 | url(r'^api/build/(?P<build_id>\d+)$', views.json_build, name='json_build'), | ||
251 | |||
252 | # default redirection | ||
248 | url(r'^$', RedirectView.as_view(url='landing', permanent=True)), | 253 | url(r'^$', RedirectView.as_view(url='landing', permanent=True)), |
249 | ] | 254 | ] |