Upgrade to github gems and add jsonapi suppliers endpoint for user app

This commit is contained in:
2015-09-30 17:57:19 +02:00
parent 81d4545104
commit 91b5eeec80
4 changed files with 35 additions and 16 deletions
@@ -0,0 +1,14 @@
module Users
class SuppliersController < Users::ApplicationController
def show
@supplier = Supplier.find(params[:id])
render json: {}, status: :not_found and return unless @supplier.present?
render json: @supplier, include: %w[
product_categories
product_categories.products
product_categories.products.product_variants
]
end
end
end