-
Notifications
You must be signed in to change notification settings - Fork 1
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
Prepare client to work with back-end api #14
base: develop
Are you sure you want to change the base?
Conversation
mik629
commented
Jun 15, 2021
- added back-end DTOs
- added retrofit
- added repositories
- added corresponding domain models
- used kotlin serialization (haven't verified it yet, in hackathon app we used moshi)
* added back-end DTOs * added retrofit * added repositories * added corresponding domain models * used kotlin serialization (haven't verified it yet, in hackathon app we used moshi)
|
||
@GET("lectures/by-id") | ||
suspend fun getLectureById( | ||
@Query(value = "lectureId") lectureId: Long |
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.
Better to use a path variable, I think
@Body updateLectureRequestDTO: UpdateLectureRequestDTO | ||
) | ||
|
||
@GET("lectures/all") |
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.
Better to use path variable, like:
{courseId}/lectures
|
||
// fixme: fix user auth | ||
class TokenAuthenticator @Inject constructor( | ||
// private val prefsStorage: PrefsStorage |
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.
Add a PrefsStorage having DataStore under the hood
app/src/main/java/com/academy/android/domain/repositories/CourseRepository.kt
Show resolved
Hide resolved
* fixed broken gradlew * upgraded gradle to 7.2
* video cards are yet to be done * empty result handling is also to be done
* added video cards
* cleaned up unused resources
* renamed repositories to better readability
* renamed interactors package * renamed *Interactor -> *UseCase
* added username/password input fields * added "mentor" switch
* prepare for using auth via back-end
* handled wrong credentials
Re-writing UI in Compose