diff --git a/docs/swagger/calendar.yaml b/docs/swagger/calendar.yaml index 76e9e4bb..c7dd212f 100644 --- a/docs/swagger/calendar.yaml +++ b/docs/swagger/calendar.yaml @@ -563,6 +563,9 @@ definitions: max_participants: type: string example: null + location: + type: string + example: null content: $ref: "https://raw.githubusercontent.com/humhub/rest/master/docs/swagger/content.yaml#/definitions/Content" diff --git a/helpers/RestDefinitions.php b/helpers/RestDefinitions.php index e3614d97..ca25ba53 100644 --- a/helpers/RestDefinitions.php +++ b/helpers/RestDefinitions.php @@ -35,6 +35,7 @@ public static function getCalendarEntry(CalendarEntry $entry) 'participant_info' => $entry->participant_info, 'closed' => (int)$entry->closed, 'max_participants' => (int)$entry->max_participants, + 'location' => $entry->location, 'content' => ContentDefinitions::getContent($entry->content), 'participants' => static::getParticipantUsers($entry->getParticipantEntries()->with('user')->all()) ]; @@ -60,4 +61,4 @@ private static function getParticipantUsers($participants) return $result; } -} \ No newline at end of file +}