From 6317930b304568bf4c099537eb9a5ffe31af2857 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?marcin=20miko=C5=82ajczak?= Date: Sun, 4 Dec 2022 12:34:09 +0100 Subject: [PATCH] Document events endpoints MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: marcin mikołajczak --- app/soapbox/utils/features.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/app/soapbox/utils/features.ts b/app/soapbox/utils/features.ts index efbbbda37..ecbc09635 100644 --- a/app/soapbox/utils/features.ts +++ b/app/soapbox/utils/features.ts @@ -280,6 +280,20 @@ const getInstanceFeatures = (instance: Instance) => { */ ethereumLogin: v.software === MITRA, + /** + * Ability to create and perform actions on events. + * @see POST /api/v1/pleroma/events + * @see GET /api/v1/pleroma/events/joined_events + * @see PUT /api/v1/pleroma/events/:id + * @see GET /api/v1/pleroma/events/:id/participations + * @see GET /api/v1/pleroma/events/:id/participation_requests + * @see POST /api/v1/pleroma/events/:id/participation_requests/:participant_id/authorize + * @see POST /api/v1/pleroma/events/:id/participation_requests/:participant_id/reject + * @see POST /api/v1/pleroma/events/:id/join + * @see POST /api/v1/pleroma/events/:id/leave + * @see GET /api/v1/pleroma/events/:id/ics + * @see GET /api/v1/pleroma/search/location + */ events: v.software === PLEROMA && v.build === REBASED && gte(v.version, '2.4.50'), /**