Esempio n. 1
0
 def post(self, task_id):
     """
     Create a subscription entry for given task and current user. 
     ---
     tags:
     - User
     description: When a user subscribes, he gets notified everytime a comment is posted on the task.
     parameters:
       - in: path
         name: task_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         201:
             description: Subscription entry created
     """
     return user_service.subscribe_to_task(task_id), 201
Esempio n. 2
0
 def post(self, task_id):
     return user_service.subscribe_to_task(task_id), 201