Skip to content

Comments

feat:add API#30

Merged
khoshov merged 4 commits intodevelopfrom
feature/add_API
Jul 17, 2025
Merged

feat:add API#30
khoshov merged 4 commits intodevelopfrom
feature/add_API

Conversation

@nikshirokov
Copy link
Collaborator

No description provided.

field_name="published_at",
lookup_expr="gte",
)
published_before = DateFilter(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Проверить не нужно ли эти поля тоже добавить в fields

@@ -0,0 +1,41 @@
from django_filters import CharFilter, DateFilter, FilterSet
from apps.books.models import Book
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

import отформатирован не по канонам и не должно быть apps. И я бы сделал относительный импорт когда мы в том же приложении.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"publisher",
"tag",
"language",
]
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Давай добавим папку v1

apps/books/api/v1

Copy link
Owner

@khoshov khoshov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Нужны небольшие доработки

@@ -0,0 +1,36 @@
from django_filters import CharFilter, DateFilter, FilterSet
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Протестистировать API наскольно получится подробно

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Подключить coverage и pytest

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Поресерчить как вынести в readme процент покрытия

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@khoshov khoshov merged commit f595ceb into develop Jul 17, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants