Example #1
0
 def delete(self, sequence_id, task_type_id):
     """
     Remove a subscription entry for given sequence, tasl type and current user.
     ---
     tags:
     - User
     parameters:
       - in: path
         name: sequence_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
       - in: path
         name: task_type_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         204:
             description: Subscription entry removed
     """
     user_service.unsubscribe_from_sequence(sequence_id, task_type_id)
     return "", 204
Example #2
0
 def delete(self, sequence_id, task_type_id):
     user_service.unsubscribe_from_sequence(sequence_id, task_type_id)
     return "", 204