From 0fa213a1f83c7ee16c45d1846ab780848b241e88 Mon Sep 17 00:00:00 2001 From: Aleksey Sabilin Date: Fri, 14 Aug 2026 15:01:05 +0300 Subject: [PATCH] docs(spec): calendar GET and /c/:id accept unique short_name. --- EventHubBackSpec.md | 2 +- EventHubFrontSpec.md | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/EventHubBackSpec.md b/EventHubBackSpec.md index fd857eb..23b27e2 100644 --- a/EventHubBackSpec.md +++ b/EventHubBackSpec.md @@ -526,7 +526,7 @@ src/ - `GET /v1/calendars` — список календарей (auth). - `POST /v1/calendars` — создать календарь (`commercial` → нужна уже active sub/trial; иначе `402`; auto-start trial нет). -- `GET /v1/calendars/:id` — календарь. **Без токена** для active commercial (`following: false`); +- `GET /v1/calendars/:id` — календарь **или unique `short_name`**. **Без токена** для active commercial (`following: false`); personal без доступа → `403`. С сессией: `following`, `booking_open`. - `PUT /v1/calendars/:id` — обновить календарь (`personal→commercial` → нужна уже active sub/trial, иначе `402`). diff --git a/EventHubFrontSpec.md b/EventHubFrontSpec.md index e95a1cc..0f39a78 100644 --- a/EventHubFrontSpec.md +++ b/EventHubFrontSpec.md @@ -175,6 +175,7 @@ preview, затем существующий POST events. После созда - `/login`, `/register`, `/verify`, `/forgot-password`, `/reset-password` - `/search`, `/discover` — каталог без сессии - `/c/:calendarId`, `/c/:calendarId/e/:eventId` — read-only неделя commercial-студии; + `calendarId` — UUID **или** `short_name` (гость: active commercial). запись / follow / «мой календарь» → `/login?next=` Защищённые (`ProtectedRoute`):