Created
July 10, 2019 00:14
-
-
Save juliuscanute/f62443720a618617dcb10ab0a236727f to your computer and use it in GitHub Desktop.
Dictionary API
This file contains hidden or 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
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