test fixture
rake db:create_migration NAME=create_users
rake db:create db:migrate RACK_ENV=development
get '/api/users/:name' do
:name
activerecord
.to_json
POST /api/users
DELETE /api/users/:name
POST /api/users/:name/validate
Write the following additional APIs (which are not in the sample code) and add the test cases as well!
PUT /api/users/:id