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

refactor: replace generic list create api view with generic viewset a… #199

Merged
merged 1 commit into from
Jul 16, 2024

Conversation

andrey-canon
Copy link
Collaborator

Description

This doesn't modify anything; it simply changes the current implementation to use a viewset implementation and updates the create method to utilize the super method instead of duplicating it.

Copy link
Collaborator

@johanseto johanseto left a comment

Choose a reason for hiding this comment

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

Wroking as expected. The only thing is the is necessary eh fix of https://github.com/eduNEXT/eox-nelp/pull/201/commits

return Response({}, status=status.HTTP_200_OK, headers=headers)
response = super().create(request, *args, **kwargs)

if response.status_code == status.HTTP_201_CREATED:
Copy link
Collaborator

Choose a reason for hiding this comment

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

This is so crazy, chaging normal status codes. But we depends on client logic 201 ->200

@andrey-canon andrey-canon merged commit 4ccb809 into master Jul 16, 2024
7 of 8 checks passed
@andrey-canon andrey-canon deleted the and/refactor_pearson_api branch July 16, 2024 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants