mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
Merge pull request #3079 from urbanrotnik/ur-sci-5376
Add ProjectFolders relation to Folder Serializer [SCI-5376]
This commit is contained in:
commit
451e0316ad
2 changed files with 4 additions and 0 deletions
|
@ -9,6 +9,7 @@ module Api
|
|||
belongs_to :team, serializer: TeamSerializer
|
||||
belongs_to :parent_folder, serializer: ProjectFolderSerializer
|
||||
has_many :projects, serializer: ProjectSerializer
|
||||
has_many :project_folders, serializer: ProjectFolderSerializer
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -31,6 +31,9 @@
|
|||
},
|
||||
"projects": {
|
||||
"type": "object"
|
||||
},
|
||||
"project_folders": {
|
||||
"type": "object"
|
||||
}
|
||||
},
|
||||
"additionalProperties": false,
|
||||
|
|
Loading…
Reference in a new issue