Closed thundergolfer closed 7 years ago
Looks good, but could you add the stub code? It's pretty much this:
@data = File.read(Rails.root.join('public', 'organization_connections.json'))
render :json => @data
And please change the name of the file from organisations => organizations for consistency, I've used the Z spelling in my example above.
I might add a comment about this being stub data and then merge it.
Closing because @Raddus later implemented this himself.
Description
This adds a
GET
endpoint that I'd like to call from thegraph_controller
and receive aJSON
payload that I can pass almost directly to the D3.js code.For the moment the
organizations_controller
can stub the returnedjson
payload with whatever is inorganisation_connections.json
. That will at least get us something to work with.