Pocro Vento Documentation

Backend: Kalendar zauzetosti

GitHub Issue: #190

Last modified with commit 7a580a0 on by Aljaž.

Backend task for the Kalendar zauzetosti (GET /drivepark/calendar) – check the API spec and DB structure, return all vehicles (archived only with bookings in the month) with their reservations and event bookings for a month, implement, and verify against the spec.

Docs: Kalendar zauzetosti Spec: GET /drivepark/calendar (getDriveParkCalendar), DriveParkCalendar, DriveParkCalendarVehicle (allOf Vehicle), DriveParkCalendarEntry in api-docs/openapi.yaml DB: Vehicles, VehicleReservations, DriveParkReservations, Events in api/database/pending_schema.sql (-- DRIVE PARK --) and create_schema.sql

1. Double check API spec and DB structure

2. Implementation

3. Verify implementation against spec

Done when

The calendar shows every vehicle of the month with its blue reservation bars, green event bars and Neispravno state.