-
Notifications
You must be signed in to change notification settings - Fork 14
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
Conversation
9d40db4
to
81f6cca
Compare
"tab_title": "Textbook Name", | ||
"chapters": [ | ||
{ | ||
"title": "Chapter 1", | ||
"url": "/static/Present_Perfect.pdf" | ||
}, | ||
{ | ||
"title": "Chapter 2", | ||
"url": "/static/Lear.pdf" | ||
} | ||
], | ||
"id": "Textbook_Name" |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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() |
There was a problem hiding this comment.
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
textbooks = serializers.ListField() | |
textbooks = CourseTextbookItemSerializer(many=True) |
right?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
81f6cca
to
90ff1d1
Compare
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
* feat: [AXIMST-111] create API for course textbooks * fix: add tabulation
AXIMST-111