-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
ruleNew rule for the detectors projectNew rule for the detectors project
Description
Retrofit endpoint definition is really easy and that is why it is so commonly used
@GET("group/{id}/users")
Call<List<User>> groupList(@Path("id") int groupId);However, when declaring the URL within the annotation you can convert a relative URL into an absolute one just by adding a trailing slash. This small detail leads to unconscious errors, and unless you have already suffered it takes some time to notice.
Although there might be some endpoints that might differ, all URL should follow the same format so mixing absolute and relative URLs would be a Lin warning
Serchinastico
Metadata
Metadata
Assignees
Labels
ruleNew rule for the detectors projectNew rule for the detectors project