package edu.rpi.cs.yacs.retrofit;

import edu.rpi.cs.yacs.models.Course;
import edu.rpi.cs.yacs.models.School;
import edu.rpi.cs.yacs.models.Section;
import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Query;

/**
 * Created by Mark Robinson on 9/24/16.
 */

interface YACSService {
    /**
     * This method fetches all schools and departments of the college.
     * @return Relevant School objects
     */
    @GET("/schools.json?show_departments=true")
    Call<School> loadDepartments();

    /**
     * This method fetches all courses given a query to search.
     * @param search query string to search
     * @return Relevant Course objects of query
     */
    @GET("/courses.json")
    Call<Course> loadCoursesBySearch(@Query("search") String search);

    /**
     * This method fetches all courses of a given department.
     * @param department_code department code to fetch courses
     * @return Relevant Course objects of department_code
     */
    @GET("/courses.json")
    Call<Course> loadCoursesByDepartment(@Query("department_code") String department_code);

    /**
     * This method fetches all sections and periods of a given course.
     * @param course_id course id to fetch sections and periods
     * @return Relevant Section objects of course_id
     */
    @GET("/sections.json?show_periods=true")
    Call<Section> loadCourseSections(@Query("course_id") int course_id);
}
@@ -272,16 +272,23 @@
 6.%0A */%0A%0A
+public 
 interfac
@@ -303,16 +303,16 @@
 rvice %7B%0A
-
     /**%0A
@@ -439,17 +439,16 @@
   @GET(%22
-/
 schools.
@@ -497,26 +497,22 @@
 ol%3E load
-Department
+School
 s();%0A%0A  
@@ -683,33 +683,32 @@
    */%0A    @GET(%22
-/
 courses.json%22)%0A 
@@ -986,17 +986,16 @@
   @GET(%22
-/
 courses.
@@ -1290,32 +1290,32 @@
 urse_id%0A     */%0A
+
     @GET(%22/secti
@@ -1308,17 +1308,16 @@
   @GET(%22
-/
 sections

Modify Retrofit YACSService