Hi! Does anyone know where the documentation for t...
# general
a
Hi! Does anyone know where the documentation for the body of the POST request of the provider setup url parameter is? I get the following body:
Copy code
{
  "consumer": "Consumer",
  "state": "User exists and has resources",
  "states": [
    "User exists and has resources"
  ],
  "params": {}
}
m
What Pact implementation are you using?
a
pact python
m
Tried asking in #C9VECUP6E?
a
Oh, I thought that was independent of the implementation, thanks!
m
Actually in this case you’re right, but most people probably wouldn’t know that - so all is forgiven
I don’t actually know where the canonical source is, but this is the Ruby application. I believe it sends both the array format (
states
) and the single
state
property to support both V3 and V2 clients. Params is a v3 thing, and can be passed through from the consumer test.
The properties you see there are the only ones I’d expect to see - the consumer that this test is for, state name itself and any parameters that go with it.
In the case of V2 pacts, I’d only expect that
state
and
consumer
are populated
a
Ohhh, I see, thanks a lot!! 🙂
m
Right, I assumed you were asking how to use your framework to fill in the “missing” values, sorry.
👍 1