Esempio n. 1
0
 def get(self, task_id):
     """
     Return true if current user has subscribed to given task.
     ---
     tags:
     - User
     parameters:
       - in: path
         name: task_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         200:
             description: True if current user has subscribed to given task, False otherwise
     """
     return user_service.has_task_subscription(task_id)
Esempio n. 2
0
 def get(self, task_id):
     return user_service.has_task_subscription(task_id)