This run this application, please have docker installed.
docker-compose build
docker-compose up
docker-compose run web rails db:create
docker-compose run web rails db:migrates
docker-compose run web rails db:seed
While server is up (docker-compose up
), run:
docker-compose run web rails test
While server is up (docker-compose up
), you can do all below
curl -i -H "Accept: application/json" http://localhost:3000/dns_records\?page\=1
curl -i -H "Accept: application/json" http://localhost:3000/dns_records\?page\=1\&excluded\[\]\=\ipsum.com
curl -i -H "Accept: application/json" http://localhost:3000/dns_records\?page\=1\&included\[\]\=\ipsum.com
curl --data "dns_record[ip]=8.8.8.8&dns_record[hostnames_attributes][hostname]=ipsum.com" http://localhost:3000/dns_records