Retrieve All Farms

Number of APIs: 2

Two requests are required to retrieve all farms from an organization.

The first request is to retrieve the bearer token necessary for authentication. This is a common theme and it is generally best practice to call this once for a session and store the result as an environment variable. We do just that in the post-response scripts for this request.

The second request is GET Solar Farm Data. In this case, we log out the farm names to the console. In the pre-request script you can see an example of how to parametrize this request to run multiple times over multiple orgs. Entering multiple org ids and then running the collection will produce the farm data for all specified orgs in Qodex's console logs.

  1. Retrieve Bearer Token POST {{url}}/oauth/token

  2. GET Solar Farm Data GET {{url}}/solar_farms?org_id={{org_id}}