Hi. When browsing to `<http://yourbroker/integrati...
# pact-broker
a
Hi. When browsing to
<http://yourbroker/integrations>
the page displays a Response Body that appears to be JSON. However, when I
curl
to this url, the response I get back was surprising. Its formatted plaintext. Graphviz? Is there any way of getting this back in JSON format? It would be much better for scripting, if it was JSON. Thanks
y
send an accept header with application/json
☝️ 1
that doesn’t work, the response isn’t json, its graphviz for displaying in the network diagram
You can access the list of integrations by interacting with the HAL api which returns a json response
Matt did a post on using the graphviz results https://pactflow.io/blog/diagrams-with-graphviz/ as an fyi but yeah using the HAL api gives you access to a tonne and is returned in json with links clients can follow