def get(self, eventId): """ Returns a JSON representation of an event based on a single ID. --- tags: - events # operationId: find event by id parameters: - name: id in: path description: ID of the event to fetch required: true schema: type: string responses: '200': description: event response default: description: unexpected error """ event = EventDao().get_by_id(event_id=eventId) event_dict = event.to_dict_view() return event_dict
def get(self, eventId): event = EventDao().get_by_id(event_id=eventId) event_dict = event.to_dict_view() return event_dict