package com.syntactec.subreddify.resources;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

import java.util.List;

/**
 * This class models the Reddit resources the application uses.
 */
public interface RedditResource {
    @GET("r/{subreddit}/new.json?count=3")
    Call<List<RedditPost>> getPostsNewerThan(@Path("subreddit") String subreddit, @Query("before") String postName);
}

@@ -298,16 +298,21 @@
 ubreddit
+Query
 %7D/new.js
@@ -318,12 +318,12 @@
 son?
-coun
+limi
 t=3%22
@@ -385,16 +385,21 @@
 ubreddit
+Query
 %22) Strin
@@ -409,16 +409,21 @@
 ubreddit
+Query
 , @Query

Correct the Reddit API request.