Add OpenAPI docs, frontend, migrations, and API updates
- OpenAPI: add missing endpoints (add-from-url, subscriptions, public availability) - OpenAPI: CalendarSubscription schema, Subscriptions tag - Frontend app - Migrations: count_for_availability, subscriptions_sync, user_preferences, calendar_settings - Config, rate limit, auth, calendar, booking, ICS, availability, user service updates Made-with: Cursor
This commit is contained in:
4
llms.txt
4
llms.txt
@@ -93,7 +93,7 @@ POST /booking/{token}/reserve - Public, no auth. Body: {"name", "email", "slot_s
|
||||
GET /calendars/{id}/export.ics - Export as ICS (scope: calendars:read). Full RFC 5545 support: VEVENT with VALARM (reminders), ATTENDEE, all-day events (VALUE=DATE), RRULE, DTSTART/DTEND, SUMMARY, DESCRIPTION, LOCATION, CREATED, LAST-MODIFIED. Returns text/calendar.
|
||||
POST /calendars/import - Import ICS file (scope: calendars:write). Multipart form: calendar_id (uuid) + file (.ics). Parses VEVENT with VALARM, ATTENDEE, TZID, VALUE=DATE, RRULE. Returns {"ok": true, "imported": {"events": N}}.
|
||||
POST /calendars/import-url - Import from iCal URL (scope: calendars:write). Body: {"calendar_id": uuid, "url": "https://..."}. Fetches the iCal feed and imports events. Supports http, https, webcal protocols. Returns {"ok": true, "imported": {"events": N}, "source": url}.
|
||||
GET /cal/{token}/feed.ics - Public iCal feed. No auth required. Returns the calendar's events in iCal format. Subscribe to this URL in Google Calendar, Apple Calendar, Outlook, etc. The URL is available as ical_url in the Calendar object when is_public is true.
|
||||
GET /cal/{token}/feed.ics - iCal feed. No auth required. Works for both public and private calendars. Public calendars use a shorter base64url token; private calendars use a 64-character SHA256 hex token. The ical_url is in the Calendar object. Subscribe in Google Calendar, Apple Calendar, Outlook, etc.
|
||||
|
||||
## Data Schemas
|
||||
|
||||
@@ -129,4 +129,4 @@ Cursor-based. Query params: limit (default 50, max 200), cursor (opaque string).
|
||||
- Soft deletion throughout (data recoverable)
|
||||
- Calendar roles: owner (full), editor (events CRUD), viewer (read-only)
|
||||
- Only owners can share calendars, delete calendars, create booking links, change is_public
|
||||
- Public calendars provide an ical_url for subscription by external calendar apps
|
||||
- All calendars have an ical_url: public use shorter token, private use 64-char SHA256 hex for security
|
||||
|
||||
Reference in New Issue
Block a user