Antonio
06/03/2024, 8:12 AMMatt (pactflow.io / pact-js / pact-go)
Antonio
06/03/2024, 8:39 AMMatt (pactflow.io / pact-js / pact-go)
Antonio
06/03/2024, 12:20 PMAntonio
06/03/2024, 12:21 PMMatt (pactflow.io / pact-js / pact-go)
/ (root) resource will provide you links to follow to other resourcesMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
--verbose command to that to see what requests it actually makes.
If you really need the API, there is some basic docs here: https://docs.pact.io/pact_broker/api/webhooksMatt (pactflow.io / pact-js / pact-go)
Antonio
06/04/2024, 7:48 AMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Antonio
06/04/2024, 2:03 PMMatt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Matt (pactflow.io / pact-js / pact-go)
Antonio
06/06/2024, 2:35 PMpact-broker create-webhook URL -X, --request=METHOD -b, --broker-base-url=BROKER_BASE_URLAntonio
06/07/2024, 8:59 AMdocker run --rm --network="host" pactfoundation/pact-cli:latest pact-broker create_webhook <http://localhost:8080/notifications> -X POST -b <http://localhost:9292/webhooks> -u pactBrokerUsername -p pactBrokerUserPassword -d "{\"description\":\"Sendnotification-test\",\"provider\":{\"name\":\"bm\"},\"events\":[{\"name\":\"contract_content_changed\"}],\"request\":{\"method\":\"POST\",\"url\":\"http:localhost:8080/notifications\",\"headers\":{\"Accept\":\"application/json\"}}}" --contract-published
Now when I fire this, i get:
PactBroker::Client::hal::ErrorResponseReturned - Error making request to <http://localhost:9292/webhooks> status=401
Not sure why I get a 401, I am providing the broker's credentials and the recipient app does not need any credentials. Also, I am using something similar to publish and verify a PACT and do not have any auth issues