Merge pull request #3079 from urbanrotnik/ur-sci-5376

Add ProjectFolders relation to Folder Serializer [SCI-5376]
This commit is contained in:
Urban Rotnik 2021-01-12 21:19:51 +01:00 committed by GitHub
commit 451e0316ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 0 deletions

View file

@ -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

View file

@ -31,6 +31,9 @@
},
"projects": {
"type": "object"
},
"project_folders": {
"type": "object"
}
},
"additionalProperties": false,