Skip to content

Instantly share code, notes, and snippets.

@varundwarkani
Last active May 7, 2021 19:07
Show Gist options
  • Save varundwarkani/264f7bd738f26d6d8f83cbeb22d755e0 to your computer and use it in GitHub Desktop.
Save varundwarkani/264f7bd738f26d6d8f83cbeb22d755e0 to your computer and use it in GitHub Desktop.
interface ApiService {
@FormUrlEncoded
@POST("api/getnews")
fun getNews(@Field("limit") limit: Int, @Field("offset") offset: Int): Observable<NewsAPIResponse>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment