Открыть боковую панель
effective-dev-opensource
Effective-Office
Коммиты
8df6745f
Не подтверждена
Коммит
8df6745f
создал
Авг 27, 2025
по автору
Vitaly.Smirnov
Зафиксировано автором
GitHub
Авг 27, 2025
Просмотр файлов
docs: Update Swagger documentation with latest API changes
владелец
4a95bf88
Изменения
5
Скрыть пробелы
Построчно
Рядом
backend/app/src/main/resources/application.yml
Просмотр файла @
8df6745f
server
:
server
:
port
:
8080
port
:
8080
address
:
0.0.0.0
address
:
0.0.0.0
forward-headers-strategy
:
FRAMEWORK
servlet
:
servlet
:
context-path
:
/api
context-path
:
/api
...
...
backend/feature/booking/core/src/main/kotlin/band/effective/office/backend/feature/booking/core/controller/BookingController.kt
Просмотр файла @
8df6745f
...
@@ -99,9 +99,9 @@ class BookingController(
...
@@ -99,9 +99,9 @@ class BookingController(
@RequestParam
(
required
=
false
)
userId
:
String
?,
@RequestParam
(
required
=
false
)
userId
:
String
?,
@Parameter
(
description
=
"Filter by workspace ID"
)
@Parameter
(
description
=
"Filter by workspace ID"
)
@RequestParam
(
required
=
false
)
workspaceId
:
String
?,
@RequestParam
(
required
=
false
)
workspaceId
:
String
?,
@Parameter
(
description
=
"Start of the time range in milliseconds since epoch"
,
example
=
"1
6725312
00000"
)
@Parameter
(
description
=
"Start of the time range in milliseconds since epoch"
,
example
=
"1
7557344
00000"
)
@RequestParam
(
required
=
false
)
from
:
Long
?
=
null
,
@RequestParam
(
required
=
false
)
from
:
Long
?
=
null
,
@Parameter
(
description
=
"End of the time range in milliseconds since epoch"
,
example
=
"1
6752095
99000"
)
@Parameter
(
description
=
"End of the time range in milliseconds since epoch"
,
example
=
"1
7610911
99000"
)
@RequestParam
(
required
=
false
)
to
:
Long
?
=
null
,
@RequestParam
(
required
=
false
)
to
:
Long
?
=
null
,
@Parameter
(
description
=
"Whether to return recurring bookings as non-recurrent instances"
,
example
=
"true"
)
@Parameter
(
description
=
"Whether to return recurring bookings as non-recurrent instances"
,
example
=
"true"
)
@RequestParam
(
required
=
false
,
defaultValue
=
"true"
)
returnInstances
:
Boolean
@RequestParam
(
required
=
false
,
defaultValue
=
"true"
)
returnInstances
:
Boolean
...
...
backend/feature/booking/core/src/main/kotlin/band/effective/office/backend/feature/booking/core/dto/BookingDto.kt
Просмотр файла @
8df6745f
...
@@ -31,10 +31,10 @@ data class BookingDto(
...
@@ -31,10 +31,10 @@ data class BookingDto(
@Schema
(
description
=
"Booking ID"
,
example
=
"123e4567-e89b-12d3-a456-426614174000"
)
@Schema
(
description
=
"Booking ID"
,
example
=
"123e4567-e89b-12d3-a456-426614174000"
)
val
id
:
String
,
val
id
:
String
,
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
6725312
00000"
)
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
7557344
00000"
)
val
beginBooking
:
Long
,
val
beginBooking
:
Long
,
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"1
672534800
000"
)
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"1
761091199
000"
)
val
endBooking
:
Long
,
val
endBooking
:
Long
,
@Schema
(
description
=
"Recurrence pattern for the booking"
)
@Schema
(
description
=
"Recurrence pattern for the booking"
)
...
...
backend/feature/booking/core/src/main/kotlin/band/effective/office/backend/feature/booking/core/dto/CreateUpdateBookingDto.kt
Просмотр файла @
8df6745f
...
@@ -24,15 +24,15 @@ data class CreateBookingDto(
...
@@ -24,15 +24,15 @@ data class CreateBookingDto(
val
workspaceId
:
String
,
val
workspaceId
:
String
,
@
field
:
NotNull
(
message
=
"Begin booking time is required"
)
@
field
:
NotNull
(
message
=
"Begin booking time is required"
)
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
6725312
00000"
)
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
7558235
00000"
)
val
beginBooking
:
Long
,
val
beginBooking
:
Long
,
@
field
:
NotNull
(
message
=
"End booking time is required"
)
@
field
:
NotNull
(
message
=
"End booking time is required"
)
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"1
6725348
00000"
)
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"1
7584995
00000"
)
val
endBooking
:
Long
,
val
endBooking
:
Long
,
@Valid
@Valid
@Schema
(
description
=
"Recurrence pattern for the booking"
)
@Schema
(
description
=
"Recurrence pattern for the booking"
,
example
=
"null"
)
val
recurrence
:
RecurrenceDto
?
=
null
val
recurrence
:
RecurrenceDto
?
=
null
)
{
)
{
/**
/**
...
@@ -71,14 +71,14 @@ data class UpdateBookingDto(
...
@@ -71,14 +71,14 @@ data class UpdateBookingDto(
@Schema
(
description
=
"Emails of users participating in the booking"
,
example
=
"[\"jane.doe@example.com\"]"
)
@Schema
(
description
=
"Emails of users participating in the booking"
,
example
=
"[\"jane.doe@example.com\"]"
)
val
participantEmails
:
List
<
String
>
=
emptyList
(),
val
participantEmails
:
List
<
String
>
=
emptyList
(),
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
6725312
00000"
)
@Schema
(
description
=
"Start time of the booking in milliseconds since epoch"
,
example
=
"1
7557344
00000"
)
val
beginBooking
:
Long
?
=
null
,
val
beginBooking
:
Long
?
=
null
,
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"167
25
34
8
00000"
)
@Schema
(
description
=
"End time of the booking in milliseconds since epoch"
,
example
=
"1
75
6734
4
00000"
)
val
endBooking
:
Long
?
=
null
,
val
endBooking
:
Long
?
=
null
,
@Valid
@Valid
@Schema
(
description
=
"Recurrence pattern for the booking"
)
@Schema
(
description
=
"Recurrence pattern for the booking"
,
example
=
"null"
)
val
recurrence
:
RecurrenceDto
?
=
null
val
recurrence
:
RecurrenceDto
?
=
null
)
{
)
{
/**
/**
...
...
backend/feature/workspace/src/main/kotlin/band/effective/office/backend/feature/workspace/core/controller/WorkspaceController.kt
Просмотр файла @
8df6745f
...
@@ -76,10 +76,10 @@ class WorkspaceController(
...
@@ -76,10 +76,10 @@ class WorkspaceController(
@Parameter
(
description
=
"Workspace tag"
,
required
=
true
,
example
=
"meeting"
)
@Parameter
(
description
=
"Workspace tag"
,
required
=
true
,
example
=
"meeting"
)
@RequestParam
(
name
=
"workspace_tag"
)
tag
:
String
,
@RequestParam
(
name
=
"workspace_tag"
)
tag
:
String
,
@Parameter
(
description
=
"Start of the time range for workspaces with bookings"
,
example
=
"175
15656
00000"
)
@Parameter
(
description
=
"Start of the time range for workspaces with bookings"
,
example
=
"175
57344
00000"
)
@RequestParam
(
name
=
"with_bookings_from"
,
required
=
false
)
withBookingsFrom
:
Long
?,
@RequestParam
(
name
=
"with_bookings_from"
,
required
=
false
)
withBookingsFrom
:
Long
?,
@Parameter
(
description
=
"End of the time range for workspaces with bookings"
,
example
=
"17
52824530612
"
)
@Parameter
(
description
=
"End of the time range for workspaces with bookings"
,
example
=
"17
61091199000
"
)
@RequestParam
(
name
=
"with_bookings_until"
,
required
=
false
)
withBookingsUntil
:
Long
?
@RequestParam
(
name
=
"with_bookings_until"
,
required
=
false
)
withBookingsUntil
:
Long
?
):
ResponseEntity
<
List
<
WorkspaceDTO
>>
{
):
ResponseEntity
<
List
<
WorkspaceDTO
>>
{
val
workspaces
=
workspaceService
.
findAllByTag
(
tag
)
val
workspaces
=
workspaceService
.
findAllByTag
(
tag
)
...
...
Редактирование
Предварительный просмотр
Поддерживает Markdown
0%
Попробовать снова
или
прикрепить новый файл
.
Отмена
You are about to add
0
people
to the discussion. Proceed with caution.
Сначала завершите редактирование этого сообщения!
Отмена
Пожалуйста,
зарегистрируйтесь
или
войдите
чтобы прокомментировать