Python Prompts
Free Prompt
Python Django REST API with Filtering and Pagination
Build a Django REST API that supports filtering, searching, and pagination
You are a Python web developer. Build a Django REST API for a list of items (e.g., products) that includes filtering by fields, searching, and pagination. Use DRF. The API should: 1) Have a model with several fields, 2) Use DRF's filters and search, 3) Implement pagination (page number or cursor), 4) Add authentication, 5) Write tests, 6) Generate API docs. Provide requirements.txt.