Exemplo n.º 1
0
 def get(self, notification_id):
     """
     Return notification matching given id, only if it's a notification that belongs to current user.
     ---
     tags:
     - User
     parameters:
       - in: path
         name: notification_id
         required: True
         schema:
             type: UUID
             example: a24a6ea4-ce75-4665-a070-57453082c25
     responses:
         200:
             description: Notification matching given ID
     """
     return user_service.get_notification(notification_id)
Exemplo n.º 2
0
 def get(self, notification_id):
     return user_service.get_notification(notification_id)