From 5666c4d8ae7d21b2478765f0994288186d0a26df Mon Sep 17 00:00:00 2001 From: Artillio Date: Wed, 13 Mar 2024 22:31:03 +0100 Subject: [PATCH 1/2] Update RestDefinitions.php with location Added Location to RestDefinitions --- helpers/RestDefinitions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +} From fab51fdc8e1e6be7ed124045796572bdb30adb1d Mon Sep 17 00:00:00 2001 From: Artillio Date: Thu, 14 Mar 2024 09:18:13 +0100 Subject: [PATCH 2/2] Swagger doc update --- docs/swagger/calendar.yaml | 3 +++ 1 file changed, 3 insertions(+) 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"