Pocro Vento Documentation

Backend: Editing existing reservation

Last modified with commit 54c7b1e on by TjasaSimovic.

Backend task for loading and updating a Vozni park reservation (GET and POST /drivepark/reservations/{reservationId}) – check the API spec and DB structure, reuse the lock and overlap check while ignoring the reservation's own booking, handle a vehicle change, implement, and verify against the spec.

Docs: Editing existing reservation Spec: GET /drivepark/reservations/{reservationId} (getDriveParkReservation), POST /drivepark/reservations/{reservationId} (updateDriveParkReservation), DriveParkReservationNewRequest, DriveParkReservation, DriveParkReservationNotFound, DriveParkReservationConflict in api-docs/openapi.yaml DB: DriveParkReservations, VehicleReservations in api/database/pending_schema.sql (-- DRIVE PARK --)

1. Double check API spec and DB structure

2. Implementation

3. Verify implementation against spec

Done when

A Manager of Vozni park can change any reservation, including past ones, without creating an overlap.