Orginized api.rb