Add an API for webhooks

Review Request #10053 — Created July 2, 2018 and submitted — Latest diff uploaded

Information

rb-gateway
master
8eb3a4e...

Reviewers

Webhooks can now be created, deleted, updated, or retrieved from the web
API.

Now that we have multiple sub-routers, (e.g. for repos/ and hooks/), the
router building code has been refactored into a data type (routingEntry)
and method (addRoutes) so that the same code does not need to be
repeated for each set of routes.

Co-authored-by: Florie Cai floriecai@hotmail.com

Ran go fmt ./....
Ran make test.
Ran make integration-tests.

api/api.go
api/routes.go
api/routes_test.go
commands/webhook.go
config/config.go
helpers/config.go
integration_tests/common.go
repositories/hooks/store.go
repositories/hooks/store_test.go
repositories/hooks/webhook.go
Loading...