Probably overthinking this, but in Retrofit I just...
# squarelibraries
c
Probably overthinking this, but in Retrofit I just have a question about how baseUrls should be defined. Should base url be
"<https://myapi.com/>"
and an api call be
@GET("auth/login")
or leave off the trailing
/
in baseUrl and have an api call be
@GET("/auth/login")
Reason why I ask is that retrofit homepage shows:
.baseUrl("<https://api.github.com/>")
and
@GET("users/{user}/repos")
While retrofit samples has a SimpleService that does:
API_URL = "<https://api.github.com>"
and
@GET("/repos/{owner}/{repo}/contributors")