Back to all projects
REST API & Cloud Architecture2026

Amfida

Accommodation & Hostel Management API

A secure, well-documented API for finding and managing student accommodation.

01 / 05
Swagger UI listing all Amfida endpoints
Swagger UI

Interactive API docs (Swagger UI)

Overview

The problem and who it was built for

Amfida is a backend API for finding and managing student accommodation. It serves landlords, agents, and vacancy seekers with role-based permissions, search, media uploads, and OpenAPI documentation.

The Problem

Students and tenants struggle to find verified accommodation without paying exorbitant agent fees or falling victim to rental scams, while landlords lack lightweight management tools.

Who It Was For

Students, tenants, landlords, and housing agents seeking verified student housing listings.

My Role

What I built and architectural boundaries

I designed and engineered the entire backend API, relational models, and documentation.

What I Built

  • Engineered multi-role user system with custom permission classes for landlords, agents, and seekers.
  • Built listing management CRUD endpoints with object-level authorization guards.
  • Implemented multi-criteria search, filtering, and pagination for hostel listings.
  • Integrated Cloudflare R2 / AWS S3 media uploads for listing photos and verification docs.
  • Generated OpenAPI 3.0 schemas with interactive Swagger UI and ReDoc via drf-spectacular.

What I Didn't Build (Scope & Limits)

  • Did not build a custom native mobile client; designed pure RESTful endpoints for third-party client integration.

Key Features

Core functionalities and workflows

01

Multi-Role User System

Landlords, agents and vacancy seekers, each with their own permissions.

02

Hostel & Listing Management

Full CRUD with object-level authorization, ensuring users only modify their own listings.

03

Search, Filtering & Pagination

Find listings across multiple criteria with paginated results.

04

Media Uploads (Cloudflare R2 / S3)

Secure photo and video upload endpoints per listing.

05

JWT Authentication

Token-based login using SimpleJWT with role-based access control.

06

Interactive OpenAPI / Swagger Docs

Interactive documentation generated via drf-spectacular.

Technical Decisions

Why specific tools and architectural patterns were chosen

Django REST Framework

API Architecture & Serializers

Accelerates schema design and provides robust validation layers for housing models.

drf-spectacular

OpenAPI 3.0 Documentation

Automatically generates type-safe OpenAPI schemas, Swagger UI, and ReDoc for frontend consumers.

PostgreSQL

Relational Data Storage

Ensures data integrity across hostels, rooms, media attachments, and review ratings.