Refactor project structure and update configurations for State Corp backend

- Updated project description in __init__.py
- Enhanced .gitignore to exclude additional data files
- Modified User model to remove first_name and last_name fields
- Improved instance save method in services.py to include updated_at field
- Added API tokens to .env.example for external services
- Cleaned up test files for better readability
- Updated Dockerfile and docker-compose.yml for improved setup
- Revised README.md to reflect project changes and added changelog
This commit is contained in:
2026-02-17 09:24:42 +01:00
parent e9d7f24aaa
commit fd2adf9ab4
31 changed files with 1419 additions and 933 deletions

View File

@@ -15,11 +15,24 @@ from rest_framework import permissions
# Swagger schema view
schema_view = get_schema_view(
openapi.Info(
title="Mostovik API",
title="State Corp API",
default_version="v1",
description="API documentation for Mostovik project",
terms_of_service="https://www.google.com/policies/terms/",
contact=openapi.Contact(email="contact@mostovik.local"),
description="""
## API документация для проекта State Corp
### Авторизация
Для доступа к защищённым эндпоинтам используйте JWT токен:
1. Получите токен через `POST /api/v1/users/login/`
2. Добавьте заголовок: `Authorization: Bearer <access_token>`
### Обновление токена
Используйте `POST /api/v1/users/token/refresh/` с refresh токеном.
### Парсеры
API предоставляет только чтение данных (GET, GET list).
Добавление и удаление записей происходит через парсеры и админку.
""",
contact=openapi.Contact(email="contact@state-corp.local"),
license=openapi.License(name="BSD License"),
),
public=True,