mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-09-06 05:04:35 +08:00
Rename type for inventories and add mimetype for JSON API [SCI-2614][SCI-2616][SCI-2617]
This commit is contained in:
parent
5efcacbf3d
commit
3f7590bb57
2 changed files with 2 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
module Api
|
module Api
|
||||||
module V1
|
module V1
|
||||||
class InventorySerializer < ActiveModel::Serializer
|
class InventorySerializer < ActiveModel::Serializer
|
||||||
|
type :inventories
|
||||||
attributes :id, :name
|
attributes :id, :name
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -2,3 +2,4 @@
|
||||||
|
|
||||||
# Add new mime types for use in respond_to blocks:
|
# Add new mime types for use in respond_to blocks:
|
||||||
# Mime::Type.register "text/richtext", :rtf
|
# Mime::Type.register "text/richtext", :rtf
|
||||||
|
Mime::Type.register 'application/vnd.api+json', :json
|
||||||
|
|
Loading…
Add table
Reference in a new issue