Skip to content

Instantly share code, notes, and snippets.

@juliuscanute
Created July 10, 2019 00:14
Show Gist options
  • Save juliuscanute/f62443720a618617dcb10ab0a236727f to your computer and use it in GitHub Desktop.
Save juliuscanute/f62443720a618617dcb10ab0a236727f to your computer and use it in GitHub Desktop.
Dictionary API
interface DictionaryApi {
@GET("/api/v1/dictionary/pages")
fun getNumberOfPagesInDictionary(): Call<Page>
@GET("/api/v1/dictionary/page/{pageNo}")
fun getWordsInDictionaryPage(@Path("pageNo") pageNo: Int): Call<Dictionary>
@GET("/api/v1/dictionary")
fun searchForWordsInDictionary(@Query("pageNo") pageNo: Int, @Query("word") word: String): Call<SearchResult>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment