Add basic order cycle API

This commit is contained in:
Rob H
2014-03-05 12:00:26 +11:00
parent 9f19e91e90
commit fc65eefcfd
5 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
module Api
class OrderCyclesController < Spree::Api::BaseController
respond_to :json
def managed
@order_cycles = OrderCycle.ransack(params[:q]).result.managed_by(current_api_user)
render :bulk_index
end
end
end