Pocro Vento Documentation

Backend: Zapisnik o preuzimanju (pickup form)

Last modified with commit 54c7b1e on by TjasaSimovic.

Backend task for creating and saving the pickup record (POST /drivepark/records, POST /drivepark/records/{recordId}/pickup) – check the API spec and DB structure, save drafts, complete the pickup with signatures, PDF and e-mail, fill the vehicle usage overview, implement, and verify against the spec.

Docs: Zapisnik o preuzimanju (pickup form) Spec: POST /drivepark/records (createDriveParkRecord), POST /drivepark/records/{recordId}/pickup (saveDriveParkRecordPickup), DriveParkRecordPickupRequest, DriveParkRecordSigning, DriveParkRecordDetail, DriveParkRecordConflict in api-docs/openapi.yaml DB: DriveParkRecords, DriveParkRecordEquipment in api/database/pending_schema.sql (-- DRIVE PARK --)

This is the first Zapisnici endpoint, so it also includes the shared setup for records: the blob container, signature storage, PDF generation and the e-mail.

1. Double check API spec and DB structure

2. Implementation

3. Verify implementation against spec

Done when

A Manager of Vozni park can fill in the pickup form, save it as a draft, sign it, and the user gets the signed record by e-mail.