Add an api view for obtaining and rotating the webhook key

This commit is contained in:
Jeff Bradberry
2019-08-12 15:49:15 -04:00
parent b0c530402f
commit 9d269d59d6
4 changed files with 49 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
from django.conf.urls import url
from awx.api.views import (
WebhookKeyView,
GithubWebhookReceiver,
GitlabWebhookReceiver,
BitbucketWebhookReceiver,
@@ -8,6 +9,7 @@ from awx.api.views import (
urlpatterns = [
url(r'^webhook_key/$', WebhookKeyView.as_view(), name='webhook_key'),
url(r'^github/$', GithubWebhookReceiver.as_view(), name='webhook_receiver_github'),
url(r'^gitlab/$', GitlabWebhookReceiver.as_view(), name='webhook_receiver_gitlab'),
url(r'^bitbucket/$', BitbucketWebhookReceiver.as_view(), name='webhook_receiver_bitbucket'),