Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

рабочий ендпоинт на заявку #34

Merged
merged 3 commits into from
Mar 6, 2024

Conversation

VadimGurzhy
Copy link
Collaborator

Может стоит изменить название самого эндпойнта? пока сделал так: get и post локально работает по http://127.0.0.1:8000/api/v1/merchandise/, patch по http://127.0.0.1:8000/api/v1/merchandise/{id}

@@ -53,3 +63,48 @@ class ContentViewSet(viewsets.ModelViewSet):
'post',
'patch',
)


@extend_schema_view(
Copy link
Contributor

Choose a reason for hiding this comment

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

вынеси схему в отдельный файл, по примеру контента

responses={200: MerchandiseShippingRequestSerializer},
),
)
class MerchandiseShippingRequestViewSet(viewsets.ModelViewSet):
Copy link
Contributor

Choose a reason for hiding this comment

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

Добавить пермишен isauthenticated

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Сделал

@ragimov700 ragimov700 merged commit 2493fd8 into develop Mar 6, 2024
1 check passed
@ragimov700 ragimov700 deleted the Endpoint_MerchandiseRequest branch March 6, 2024 05:51
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