Well, i'm building an application in rails and i'm locked in a task.
The issue is that i need to upload a json file containing the result of a SQL query to this url: http://api-segura.herokuapp.com/consultaPetianos, where the view of my application will get the data requested.
I already have the json string, but my question is, how can I submit this string(or file) to the given url?
Obs: the application is hosted in Heroku.