def post(self, sequence_id, task_type_id): """ Create a subscription entry for given sequence, task type and current user. --- tags: - User description: When a user subscribes, he gets notified every time a comment is posted on tasks related to the sequence. 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: 201: description: Subscription entry created """ subscription = user_service.subscribe_to_sequence( sequence_id, task_type_id) return subscription, 201
def post(self, sequence_id, task_type_id): subscription = user_service.subscribe_to_sequence( sequence_id, task_type_id ) return subscription, 201