Skip to content

hurtki/burn-after

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

57 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Burn-after

πŸ“ About the repository

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.

πŸš€ Main Endpoint

Get filtered list of posts:

GET /api/v1/posts/?category=environment&page=1&is_exploded=false&sort=likes

Query Parameters:

  • category: filter by category
  • page: pagination (integer)
  • is_exploded: boolean flag
  • sort: sorting method (created_at, -created_at, likes, -likes)

🧠 Caching Scheme

Caching diagram

The caching layer is used to store pre-rendered responses based on query params. Cache keys are built dynamically from URL parameters.


πŸ“ Project Structure

burnafter/
β”œβ”€β”€ posts/
β”‚   β”œβ”€β”€ views.py
β”‚   β”œβ”€β”€ serializers.py
β”‚   β”œβ”€β”€ urls.py
β”‚   β”œβ”€β”€ views.py
β”‚   β”œβ”€β”€ models.py
β”‚   └── cache
β”‚       β”œβ”€β”€ categories.py
β”‚       β”œβ”€β”€ posts.py
β”‚       └── zsets.py
β”œβ”€β”€ manage.py

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages