Trening: wznowienie ukonczonej sesji (naprawa pomyly) - endpoint /reopen, akcja w UI, koniec wraca do edycji

This commit is contained in:
Tilumca
2026-10-14 22:37:52 +02:00
parent 9f7a0afdec
commit 931d54a89d
10 changed files with 296 additions and 17 deletions

View File

@@ -876,6 +876,15 @@ export const openapi: Record<string, unknown> = {
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
},
},
'/sessions/{id}/reopen': {
post: {
tags: ['Sessions'],
summary:
'Reopen completed session (naprawa pomyłki; session -> in progress, day -> planned; requires no other active session)',
security: [{ bearerAuth: [] }],
parameters: [{ name: 'id', in: 'path', required: true, schema: { type: 'string' } }],
},
},
'/dashboard': {
get: {
tags: ['Dashboard'],