This project started as a playground for Django REST Framework and caching experiments.
It's not a perfect codebase, but...
- You can clone it and try out how caching works in practice.
- Explore how the project is structured.
- Use the existing endpoints to test different query param behavior.
Get filtered list of posts:
GET /api/v1/posts/?category=environment&page=1&is_exploded=false&sort=likesQuery Parameters:
category: filter by categorypage: pagination (integer)is_exploded: boolean flagsort: sorting method (created_at, -created_at, likes, -likes)
The caching layer is used to store pre-rendered responses based on query params. Cache keys are built dynamically from URL parameters.
burnafter/
βββ posts/
β βββ views.py
β βββ serializers.py
β βββ urls.py
β βββ views.py
β βββ models.py
β βββ cache
β βββ categories.py
β βββ posts.py
β βββ zsets.py
βββ manage.py
