Rename type for inventories and add mimetype for JSON API [SCI-2614][SCI-2616][SCI-2617]

This commit is contained in:
Oleksii Kriuchykhin 2018-08-10 16:59:06 +02:00
parent 5efcacbf3d
commit 3f7590bb57
2 changed files with 2 additions and 0 deletions

View file

@ -3,6 +3,7 @@
module Api
module V1
class InventorySerializer < ActiveModel::Serializer
type :inventories
attributes :id, :name
end
end

View file

@ -2,3 +2,4 @@
# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
Mime::Type.register 'application/vnd.api+json', :json