Пример #1
0
 def get(self, entity_id):
     """
     Retrieve all previews related to a given entity. It sends them
     ]as a dict. Keys are related task type ids and values are arrays
     of preview for this task type.
     """
     entity = entities_service.get_entity(entity_id)
     user_service.check_project_access(entity["project_id"])
     return playlists_service.get_preview_files_for_entity(entity_id)
Пример #2
0
 def get(self, shot_id):
     """
     Retrieve all previews related to a given shot. It sends them
     as a dict. Keys are related task type ids and values are arrays
     of preview for this task type.
     """
     shot = shots_service.get_shot(shot_id)
     user_service.check_project_access(shot["project_id"])
     return playlists_service.get_preview_files_for_entity(shot_id)
Пример #3
0
 def get(self, entity_id):
     """
     Retrieve all previews related to a given entity.
     ---
     tags:
     - Playlists
     description: It sends them as a dict. 
                  Keys are related task type ids and values are arrays of preview for this task type.
     parameters:
       - in: path
         name: entity_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         200:
             description:  All previews related to given entity
     """
     entity = entities_service.get_entity(entity_id)
     user_service.check_project_access(entity["project_id"])
     return playlists_service.get_preview_files_for_entity(entity_id)