Created
March 25, 2019 20:56
-
-
Save mitchtabian/5273bea14c8e1b20a28c4c79b443250f to your computer and use it in GitHub Desktop.
This file contains 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
public interface RequestApi { | |
@GET("posts") | |
Observable<List<Post>> getPosts(); | |
@GET("posts/{id}/comments") | |
Observable<List<Comment>> getComments( | |
@Path("id") int id | |
); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment