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
May 2025 — September 2025
Status
Completed
My role
Sole developer: data model, API, the Django admin and tests.
Demo API request on test data: the response with five random truth prompts, the first of them shown as game cards

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.

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.