mirror of
https://gitlab.dit.htwk-leipzig.de/htwk-software/htwkalender-pwa.git
synced 2026-01-18 15:02:25 +01:00
3 add occupancy bson endpoint in backend
This commit is contained in:
@@ -116,6 +116,31 @@ paths:
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
/api/schedule/rooms:
|
||||
get:
|
||||
summary: Get Room Occupancy
|
||||
parameters:
|
||||
- name: from
|
||||
in: query
|
||||
description: date
|
||||
example: "2024-12-24T00:00:00.000Z"
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: to
|
||||
in: query
|
||||
description: date
|
||||
example: "2024-12-25T00:00:00.000Z"
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
responses:
|
||||
'200':
|
||||
description: Successful response
|
||||
content:
|
||||
application/bson:
|
||||
schema:
|
||||
$ref: '#/components/schemas/RoomOccupancy'
|
||||
/api/createFeed:
|
||||
post:
|
||||
summary: Create iCal Feed
|
||||
@@ -262,4 +287,30 @@ components:
|
||||
events:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
type: string
|
||||
RoomOccupancy:
|
||||
type: object
|
||||
properties:
|
||||
start:
|
||||
type: string
|
||||
format: date-time
|
||||
granularity:
|
||||
type: integer
|
||||
blocks:
|
||||
type: integer
|
||||
rooms:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
occupancy:
|
||||
type: string
|
||||
format: binary
|
||||
required:
|
||||
- name
|
||||
- occupancy
|
||||
required:
|
||||
- start
|
||||
- granularity
|
||||
- blocks
|
||||
- rooms
|
||||
|
||||
Reference in New Issue
Block a user