-
Notifications
You must be signed in to change notification settings - Fork 5
Description
CF https://github.com/linagora/twake-calendar-frontend/issues/166
Have a route
POST https://twcalendar.linagora.com/events/{userBase}/{calendarId}/{eventUid}/eventTokens
returns
{
"eventToken": "XYZ"
}
(owner only)
XYZ is an eventToken stored in MongoDB and has the following field:
- userBase
- calendarId
- eventUid
- expiration
- right access level (view, add myself, manage event)
GET https://twcalendar.linagora.com/events/{userBase}/{calendarId}/{eventUid}/eventLinks
returns a list of valid events tokens (owner only)
GET https://twcalendar.linagora.com/eventTokens/XYZ
returns the rights associated with a given event token (any user)
DELETE https://twcalendar.linagora.com/eventTokens/XYZ
revokes the rights associated with a given event token (owner only)
GET https://twcalendar.linagora.com/events?eventToken=XYZ
Returns the details of the events in JSON form.
POST https://twcalendar.linagora.com/events?eventToken=XYZ&addMyself
Uses identity of the guy initiating the sharing link to add the authenticated user as an attendee. Validates the rights associated with the token.
POST https://twcalendar.linagora.com/events?eventToken=XYZ&addAttendee
{
"mailAddress": "[email protected]",
"Display name": "External Unauthenticated User"
}
Adds the following user into the event. PARTSTAT: NEEDS-ACTION (in order to have a validation round)