This project is a Property Management API built using Django and Django REST Framework. It provides endpoints for managing products, owners, and properties.
- User authentication and authorization
- CRUD operations for products, owners, and properties
- API documentation with drf-spectacular
- Debugging with Django Debug Toolbar
- Python
- Django
- Django REST Framework
- SQLite (default database)
- drf-spectacular
- Django Debug Toolbar
-
Clone the repository:
git clone <repository-url> cd <repository-directory>
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install the dependencies:
pip install -r requirements.txt
-
Apply the migrations:
python manage.py migrate
-
Create a superuser:
python manage.py createsuperuser
-
Run the development server:
python manage.py runserver
- List and create products:
GET /api/v1/products/andPOST /api/v1/products/
- List owners:
GET /api/v1/owners/ - Add new owner:
POST /api/v1/owners/
- List properties:
GET /api/v1/properties/
This API uses token-based authentication. Ensure you include the token in the Authorization header for protected endpoints.
API documentation is available at /api/schema/swagger-ui/ when the server is running.
Debugging is enabled with Django Debug Toolbar. It is accessible only from internal IPs.
This project is licensed under the MIT License.