Backend/API for "Due date" calendar
For #1112 (closed)
The following flow is implemented as Backend/API:
- no user can initially retrieve their calendar
- a user may "create" a calendar which sets a user specific token to retrieve such
- the token is transferred in user_settings api view
- the user may use this token to retrieve their calendar without authentification (
get api_calendar_url(token: @current_user.calendar_token)
) - the user may "destroy" the current token to disable access to their calendar
- the user may then again "create" a calendar/token etc. etc.
see tests/controllers/api/calendars_controller_test.rb
for details of using the API
Edited by Michael Prilop