module GetBooksByIdSource exposing (..) import Http getBooksById : Int -> Http.Request (Book) getBooksById capture_id = Http.request { method = "GET" , headers = [] , url = String.join "/" [ "" , "books" , capture_id |> toString |> Http.encodeUri ] , body = Http.emptyBody , expect = Http.expectJson decodeBook , timeout = Nothing , withCredentials = False }