To set configuration file you can reuse template file which is available in config/database.yml.template. PRISM will look for config file by default in config/database.yml if you want to change that you can specify ENV["CONFIG_FILE"] to something else.
Copy config/database.yml.template to config/database.yml
cp config/database.yml.template to config/database.yml
ruby tests/prism_test.rb
To interact with the application you will need cUrl application.
If you want to see also http headers use -i with curl like:
curl -i ....
curl http://prism-demo.herokuapp.com/companies
curl -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"name": "NASA", "address": "Wojska Polskiego", "city": "Szczecin", "country": "Poland" }' http://prism-demo.herokuapp.com/company
curl -i -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"name": "NASA", "address": "Wojska Polskiego", "city": "kazi", "country": "USA", "owners":[{"full_name":"Robert"}, {"full_name":"Adam"}], "phone_number": "1241241241" }' http://prism-demo.herokuapp.com/company
curl http://prism-demo.herokuapp.com/company/1
curl -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"name": "New name", "address": "Wojska Polskiego", "city": "kazi", "country": "Niemcy"}' http://prism-demo.herokuapp.com/company/1
curl -H "Accept: application/json" -H "Content-type: application/json" -X PUT -d '{"name": "NASA", "address": "Wojska Polskiego", "city": "kazi", "country": "USA", "owners":[{"full_name":"Robert"}, {"full_name":"Adam"}], "phone_number": "1241241241" }' http://prism-demo.herokuapp.com/company/1
curl -i -H "Accept: application/json" -X PUT -F "[email protected]" http://prism-demo.herokuapp.com/company/1/3/upload
curl -i http://prism-demo.herokuapp.com/company/1/owner/1 -o 1.pdf