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

feat: [AXIMST-111] create API for course textbooks #2491

Merged
merged 2 commits into from
Jan 10, 2024

Conversation

ruzniaievdm
Copy link

@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/textbook-api-drf branch from 9d40db4 to 81f6cca Compare January 9, 2024 13:40
@ruzniaievdm ruzniaievdm requested a review from monteri January 9, 2024 13:43
@ruzniaievdm ruzniaievdm self-assigned this Jan 9, 2024
Comment on lines 63 to 74
"tab_title": "Textbook Name",
"chapters": [
{
"title": "Chapter 1",
"url": "/static/Present_Perfect.pdf"
},
{
"title": "Chapter 2",
"url": "/static/Lear.pdf"
}
],
"id": "Textbook_Name"
Copy link

Choose a reason for hiding this comment

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

nit: should be tabbed to the right

Copy link
Author

Choose a reason for hiding this comment

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

fixed

Serializer for representing course's textbooks.
"""

textbooks = serializers.ListField()
Copy link

Choose a reason for hiding this comment

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

I guess it should be

Suggested change
textbooks = serializers.ListField()
textbooks = CourseTextbookItemSerializer(many=True)

right?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, it is possible
But I used the same format as i was in previous API's, dict instead of list

Copy link

Choose a reason for hiding this comment

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

Maybe this was intentional, idk

@ruzniaievdm ruzniaievdm force-pushed the ruzniaievdm/feat/textbook-api-drf branch from 81f6cca to 90ff1d1 Compare January 9, 2024 18:03
@monteri monteri merged this pull request into ts-develop Jan 10, 2024
45 checks passed
monteri pushed a commit that referenced this pull request Jan 10, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
monteri pushed a commit that referenced this pull request Jan 15, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
monteri pushed a commit that referenced this pull request Jan 18, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
monteri pushed a commit that referenced this pull request Jan 24, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
monteri pushed a commit that referenced this pull request Jan 30, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
ruzniaievdm added a commit that referenced this pull request Feb 22, 2024
* feat: [AXIMST-111] create API for course textbooks

* fix: add tabulation
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