bekowashere / automotodata-v1

Cars & Moto Database with DRF and Subscription

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

START GUIDE

python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt

python manage.py makemigrations
python manage.py migrate

pyhton manage.py createsuperuser

SUBSCRIBE

python manage.py add_plans

AUTO

(add_brands is enough for test phrase)

python manage.py add_brands


python manage.py add_series
python manage.py add_models
python manage.py add_specification_types
python manage.py add_specifications
python manage.py add_cars

CLEAR PYCACHE - MIGRATIONS

clear.sh

ENDPOINTS

ACCOUNT

✔️ [POST] api/token/ - MyTokenObtainPairView

✔️ [POST] api/account/register/customer/ - CustomerUserRegisterAPIView

AUTO

✔️ [GET] api/auto/ - BrandListAPIView

✔️ [GET] api/auto/<brand_slug> - BrandDetailAPIView

✔️ [GET] api/auto/<brand_slug>/<series_slug> - SeriesDetailAPIView

✔️ [GET] api/auto/<brand_slug>/<series_slug>/<model_slug> - ModelDetailAPIView

✔️ [GET] api/cars/<car_slug> - CarDetailAPIView

About

Cars & Moto Database with DRF and Subscription


Languages

Language:Python 99.8%Language:Shell 0.2%