THANK YOU. You just helped me complete a similar take home test at the last minute. Everything is clear and concise and most importantly modern so I don't have to look far back. let's go!!
After following the video, I keep getting crashes when I try to run at the 12:15 mark. From the logs, it looks like there's an infinite loop happening somewhere in the retrofit code. Anyone else? And is there anyway to see the actual code so I'll know I typed (and translated when the code was old, ie build.gradle) correctly?
I was getting an error about invoking viewModel() in the MainActivity, but it fixed after manually adding the import at the top of MainActivity. import androidx.lifecycle.viewmodel.compose.viewModel
Yes, typically you need to authorize to make a PUT http operation. This is because a PUT request is often used to update or replace a resource on a server, which can have significant implications for data integrity and security.
@@danieltalkscode thanks now i understand, but how can i authanticate on android side just like swagger? I heard that i should pass jwToken value as an header? Is it the correct way?
Sure! That's one of the common ways to authenticate. Save the JWT token in SharedPreferences after login, then use an OkHttp Interceptor with Retrofit to add the token to each request's header. This way, all requests will include the JWT for authentication.
EXACTLY what I was looking for! Thank you!
Thank you so much for using modern android technologies (ie jetpack compose)
THANK YOU. You just helped me complete a similar take home test at the last minute. Everything is clear and concise and most importantly modern so I don't have to look far back. let's go!!
Thank you for the kind words! Glad the video was helpful 🙂
Super, super helpful and really easy to follow.
Hello Daniel, Can you make tutorial from Rapid Api Please 🙏
Thank you so much fellow Daniel 😅
Thank you Daniel ☺️
After following the video, I keep getting crashes when I try to run at the 12:15 mark. From the logs, it looks like there's an infinite loop happening somewhere in the retrofit code. Anyone else? And is there anyway to see the actual code so I'll know I typed (and translated when the code was old, ie build.gradle) correctly?
I was getting an error about invoking viewModel() in the MainActivity, but it fixed after manually adding the import at the top of MainActivity. import androidx.lifecycle.viewmodel.compose.viewModel
Nice. Thanks for all sir
Hi could you add Unit Tests and espresso tests to the to do app please?
Do we need to authorize first, if we want to make PUT operation?
Yes, typically you need to authorize to make a PUT http operation. This is because a PUT request is often used to update or replace a resource on a server, which can have significant implications for data integrity and security.
@@danieltalkscode thanks now i understand, but how can i authanticate on android side just like swagger? I heard that i should pass jwToken value as an header? Is it the correct way?
Sure! That's one of the common ways to authenticate. Save the JWT token in SharedPreferences after login, then use an OkHttp Interceptor with Retrofit to add the token to each request's header. This way, all requests will include the JWT for authentication.
@@danieltalkscode thank you for help, I can handle it now 🙏🏻