mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-03-04 03:36:44 +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 V1
|
||||
class InventorySerializer < ActiveModel::Serializer
|
||||
type :inventories
|
||||
attributes :id, :name
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue