config Rack, and add sample api test