full-stack-fastapi-template icon indicating copy to clipboard operation
full-stack-fastapi-template copied to clipboard

Implement search filter functionality in backend

Open Durganjali-sidda opened this issue 9 months ago • 0 comments

Implemented search filter functionality in the backend for the /items route. The endpoint now supports dynamic search with filtering options for title and keyword across both title and description. Additionally, the filtering respects user permissions, ensuring non-admin users can only access their own items, while superusers can access items from other users. This enhancement improves item search and retrieval, providing more flexible querying for both regular and administrative users.

Key updates include:

Added query parameters title, keyword, and owner_id for filtering items.

Improved permission handling for item access based on user roles.

Enhanced item retrieval with support for filtering based on title and description.

Durganjali-sidda avatar Apr 24 '25 02:04 Durganjali-sidda