How gabriellorencetti/water-gas-meter-api works
Project type and purpose
• This is a backend REST API service (“Water-Gas-Meter-API”) whose sole responsibility is:
• Accepting image uploads of water and gas meters
• Calling the Google Gemini OCR API to extract the meter readings
• Persisting those readings in a database
• Exposing endpoints to confirm readings and to list stored measurements
(minimal) file structure
• At top level you only have .gitignore and README.md, but we can infer a typical backend layout:
• src/ or app/ folder holding your code
• Subfolders such as controllers/ (HTTP handlers), services/ (business logic), models/ or repositories/ (data access), config/ (env settings), routes/, and possibly tests/
• A remaining uploads/ or cloud‐storage connector for raw image files
README for additional insights
• Endpoints:
• POST /upload-image
• POST /confirm-reading
• GET /readings
• External dependency: Google Gemini OCR API
• Implied data store for readings (SQL or NoSQL) and likely object storage for images