add: BaseApiViewMixin created, TODO: switch external endpoints to GenericAPIView and BaseApiViewMixin

This commit is contained in:
2025-08-06 15:13:30 +05:00
parent 153bbefaab
commit 0935cfcb1f
8 changed files with 237 additions and 134 deletions

View File

@@ -60,8 +60,8 @@ GET /companies/<uuid:pk>/contracts # user # partial
- - folder: uuid | None
- - status: list[str]
GET /companies/<uuid:pk>/folders # user #! not working
POST /companies/<uuid:pk>/folders # user #! not working
GET /companies/<uuid:pk>/folders # user # ok
POST /companies/<uuid:pk>/folders # user # ok
GET /companies/<uuid:pk>/accounts # user # ok
POST /companies/<uuid:pk>/accounts # user #! TODO
@@ -116,10 +116,9 @@ PATCH /contract-owners/<uuid:pk> # admin # ok
GET /contract-owners/<uuid:pk>/contract # user # ok | full contract data return
POST /contract-owners/<uuid:pk>/files # user # ok
POST /contract-owners/<uuid:pk>/files # user #! not ok
GET /contract-owners/<uuid:pk>/files # user #! not ok | full data return
DELETE /contract-owners/<uuid:pk>/files/<uuid:pk> # user # ok
<!-- PATCH /contract-owners/<uuid:pk>/files/<uuid:pk> # user -->
GET /contract-owners/<uuid:pk>/files # user # not ok | full data return
POST /contract-owners/<uuid:pk>/files/<uuid:pk>/upload # user # ok