Pocro Vento Documentation

Backend: Zapisnici photos

GitHub Issue: #199

Last modified with commit 374306c on by Aljaž.

Backend task for the Fotografije of the pickup and return forms (POST /drivepark/records/{recordId}/photos, DELETE and download of a photo) – check the API spec and DB structure, validate type, size and count, allow changes only while the stage is open, implement, and verify against the spec.

Docs: Zapisnik o preuzimanju (pickup form), Zapisnik o vraćanju (return form) Spec: POST /drivepark/records/{recordId}/photos (uploadDriveParkRecordPhotos), DELETE /drivepark/records/{recordId}/photos/{photoId} (deleteDriveParkRecordPhoto), GET /drivepark/records/{recordId}/photos/{photoId}/download (downloadDriveParkRecordPhoto), DriveParkRecordPhoto, DriveParkPhotoInvalid, DriveParkRecordConflict in api-docs/openapi.yaml DB: DriveParkRecordPhotos 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

Photos can be added to and removed from an open pickup or return, and opened from the forms and view pages.