Skip to content

Instantly share code, notes, and snippets.

@Audhil Audhil/APIs.kt
Created Jul 27, 2019

What would you like to do?
class APIKindaStuff {
interface APIService {
fun greetUser(@Path("user") user: String): Call<ResponseBody>
@Headers("Content-type: application/json")
fun getVectors(@Body body: JsonObject): Call<ResponseBody>
companion object {
private val retrofit = Retrofit.Builder()
var service = retrofit.create(
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.