Can I Deploy

Allowed methods: GET

A simplified resource that accepts the same parameters as the basic usage of the can-i-deploy CLI command.

Parameters:

If you have an environment that you identify with the name prod, and each time you deployed an application to the prod environment you recorded the deployment of relevant application version in the Pact Broker using record-deployment, then calling /can-i-deploy?pacticipant=Foo&version=734137278d&environment=prod will check that version 734137278d of Foo has a successful verification result with each of the integrated application versions that are currently in prod. That is, it is safe to deploy.