Last active
April 1, 2020 22:28
-
-
Save hissain/7b5bbecabd6ac095a59f3660c62043a4 to your computer and use it in GitHub Desktop.
ServiceBuilder and RestApi class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import retrofit2.Call | |
import retrofit2.http.Body | |
import retrofit2.http.Headers | |
import retrofit2.http.POST | |
interface RestApi { | |
@Headers("Content-Type: application/json") | |
@POST("users") | |
fun addUser(@Body userData: UserInfo): Call<UserInfo> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment