finished api
add tests
fix rubocop offenses
Merge pull request #1 from reedns/dev

Build the api