I have setup the repo and it ran as expected
https://github.com/pactflow/example-consumer-cypress
I would like to use this project as sandbox to learn how or see if I can create pact against an API endpoint. However, instead of triggering GET request to `/products/10` from the app, I would like to use something like ...
```cy.request({
url: "
http://localhost:3000/products/10",
auth: {
bearer: "Bearer 2019-01-14T11:34:18.045Z",
},
headers: {
"content-type": "application/json, text/plain, */*",
},
}).then((resp) => {
cy.log(resp);
// basic assertion here?
});```
The request got 200 status but the response body looks like html template, instead of the JSON I was looking for
```const expectedProduct = {
id: "10",
type: "CREDIT_CARD",
name: "28 Degrees",
};```
My end goal is to use the generated Pact to build contract test on the producer side (a Ruby backend) later.
I was wondering how should I approach this?