Commit graph

5 commits

Author SHA1 Message Date
ce01ef65ed Handle db.Close error explicitly in deferred function 2025-09-09 13:25:49 +03:00
0aa4a49147 Extend CORS middleware to allow PATCH requests 2025-09-09 13:25:12 +03:00
7d4bf481c9 Refactor HTTP client test samples and configuration
- Moved HTTP client test files to `internal/requests`.
- Replaced hardcoded `localhost` URLs with `{{base_url}}`.
- Updated `http-client.env.json` to include `base_url` configuration.
2025-09-08 16:34:23 +03:00
5aa6a96b1d Add film CRUD operations and integrate Sakila database enhancement
- Implemented Create, Read, Update (PUT/PATCH), and Delete (CRUD) operations for films.
- Added SQL queries for film management (e.g., NextFilmID, InsertFilm, UpdateFilmPut, PatchFilm, and DeleteFilm).
- Updated HTTP handlers to support enhanced film operations, including validation and null handling.
- Refactored category handling logic for cleaner syntax.
- Included HTTP client test samples for film API in `films_crud_test.http`.
2025-09-08 16:28:19 +03:00
54e36528bc Add actor, film, and category APIs with SQL query support
- Generated SQL queries for actors, films, categories.
- Introduced HTTP handlers for actor, film, and category endpoints.
- Included utility functions for parsing query parameters and building URLs.
- Enabled pagination, filtering, and HAL representation for responses.
2025-09-02 16:12:30 +03:00