feat/PRWLR-3996 implement /tenants endpoint and basic filters logic (#14)

* chore: PRWLR-3996 add drf-jsonapi library to project

* feat: PRWLR-3996 implement /tenants endpoint and basic JSON:API spec

* feat: PRWLR-3996 implement new middleware to ingest metadata on API responses

* chore: PRWLR-3996 annotate views with drf-spectacular

* feat: PRWLR-3996 add cache-control to tenants endpoints

* feat: PRWLR-3996 update views filters

* chore: PRWLR-3996 remove meta middleware in favour of meta fields in serializers

* test(API): PRWLR-3996 add unit tests for /tenants

* chore: PRWLR-3996 turn DEBUG on on devel environment

* test: PRWLR-3996 rework tenants unit tests

* chore: PRWLR-3996 refactor filter classes

* fix(Backend,API): PRWLR-3996 use correct filter backend
This commit is contained in:
Víctor Fernández Poyatos authored and GitHub committed 2024-07-22 16:06:57 -04:00
1 parent 43f79663d9
commit 7cb3a4e16e
15 files changed
+407 -91

No files matched your search

+2 -10
View File
@@ -1,6 +1,7 @@
from django.db import models
import uuid
from django.db import models
class Base(models.Model):
"""
@@ -22,12 +23,3 @@ class Tenant(Base):
"""
name = models.CharField(max_length=100)
class TestModel(models.Model):
"""To delete.
Use this model for development/testing purposes.
"""
name = models.CharField(max_length=100)