Truth or Dare API

A REST API on Django REST Framework: random prompts by category, filtering done in the API, the Django admin and tests.

Period
February 2025 — June 2026
Status
Completed
My role
Sole developer: data model, API, the Django admin and tests.

Stack

  • Python
  • Django
  • Django REST Framework
  • PostgreSQL

Key technical decisions

  • Django REST Framework, with content managed and moderated through the Django admin: no separate interface was needed.
  • Prompts are filtered by category in the API query, not on the client.

A small REST API for Truth or Dare: prompts are stored by category, and the client gets a random one from those that match.

Content is added and moderated through the Django admin, and the main API paths are covered by pytest.