- New app/api with DRF: POST /api/v1/expenses/, GET categories and subcategories - Token auth via API_TOKEN env var (Bearer header) - Response format: type, data, errors, _links (HATEOAS) - Validates subcategory belongs to category - 11 tests covering auth, CRUD, and validation - API documentation in README.md
8 lines
158 B
Python
8 lines
158 B
Python
from django.apps import AppConfig
|
|
|
|
|
|
class ApiConfig(AppConfig):
|
|
default_auto_field = "django.db.models.BigAutoField"
|
|
name = "app.api"
|
|
verbose_name = "API"
|