Check out example codes for "retrofit". It will help you in understanding the concepts better.

Code Example 1

implementation 'com.squareup.retrofit2:retrofit:(insert latest version)'

Code Example 2

implementation 'com.squareup.retrofit2:retrofit:(insert latest version)'

Code Example 3

implementation 'com.squareup.retrofit2:retrofit:(insert latest version)'
Gson: com.squareup.retrofit2:converter-gson

Learn ReactJs, React Native from akashmittal.com