The objective of this assignment is to evaluate your knowledge of Ruby on Rails, Git, Design Patterns, Testing, APIs and SQL.
- configure the
database.yml
for your PostgreSQL environment - bundle install
- rake db:setup
- rails s
POST /dns
Content-Type: application/json
{
"dns": {
"ip": "1.1.1.1 ",
"domains": ["lorem.com", "ipsum.com", "dolor.com", "amet.com"]
}
}
GET /dns?page=1&include[]=ipsum.com&include[]=dolor.com&exclude[]=sit.com
Result example:
{
"records": 1,
"domains": [
{
"id": 4,
"ip": "1.1.1.1 ",
"domains": [
"lorem.com",
"ipsum.com",
"dolor.com",
"amet.com"
]
}
]
}