Skip to content

Instantly share code, notes, and snippets.

@mitchtabian
Created March 27, 2019 01:38
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save mitchtabian/5d6375953335f9dd84c4c4c349ba2a5d to your computer and use it in GitHub Desktop.
public interface RequestApi {
@GET("posts")
Observable<List<Post>> getPosts();
@GET("posts/{id}")
Observable<Post> getPost(
@Path("id") int id
);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment