pact-foundation / roadmap

Developer Relations @ Pact - Your map to the Pact landscape for all-comers (maintainers, contributors, users, newbies)
https://pact.io/
MIT License
40 stars 7 forks source link

Import/Export/Edit webhook in JSON #44

Open canny[bot] opened 3 months ago

canny[bot] commented 3 months ago

Would be good to update existing webhooks in json format instead of via the form as sometimes its easier to copy paste settings via json.

As an aside, the form has a basic auth setting with autocomplete="new-password" parameters set on the input, which will automatically enter my username/password in the form when editing even though i dont have or want one for the webhook. It means every time i need to update the webhook i have to clear the username and password too.

https://pact.canny.io/admin/board/feature-requests/p/importexportedit-webhook-in-json

canny[bot] commented 3 months ago

This issue has been linked to a Canny post: Import/Export/Edit webhook in JSON :tada:

YOU54F commented 3 months ago

Matt Fellows - September 13, 2021

Hi Alan, apologies this was overlooked. You can definitely create webhooks via JSON. This is supported via the API already (follow the HAL links to create one), the CLI (see https://docs.pact.io/pact_broker/webhooks/debugging_webhooks/#creating-webhooks) and via our Terraform provider (https://docs.pact.io/pact_broker/terraform_provider/).