@@ -0,0 +1,1593 @@
+package com.andela.webservice;%0A%0Aimport com.andela.webservice.model.Flower;%0A%0Aimport java.util.List;%0A%0Aimport retrofit.Callback;%0Aimport retrofit.http.GET;%0A%0A/**%0A * Created by Spykins on 21/06/16.%0A */%0Apublic interface FlowersAPI %7B%0A    /*%0A        The first step in using retrofix is to define an interface tha describes the feilds that you are going to use%0A        Now we have FlowersApi...%0A        Within the API, we declare one Abstract method.. for each field we want to use%0A        The declaration will start with an annotation, indicating the method of the request, get post and so on%0A     */%0A    @GET(%22/feeds/flower.json%22)%0A    //When you type, at get, the import the annotation from retrofix%0A    //In the bracket, give the url of the feed, excluding the base url,%0A    //After, we declare the methods that we want to use%0A              //public void getFeed(Callback%3C%3E);%0A    // When declaring the method, we pass an instance of something call%0A    //The call back class, It is also a memeber of the retrofit library%0A    //In the generic, indicate the type of data, you want to get back%0A    //Retrofit knows how to take a Json formatted content and transform it into strongly typed plain java objects%0A    //The java object class, in the case Flower class must have names that exactly match the property names in the JSOn content%0A    //If we want to get back an Array of Objects, then it must be declared as an Array of Object in the Json feed%0A%0A    public void getFeed(Callback%3CList%3CFlower%3E%3E response) ;%0A    //name the object that's being returned response and that's the end of the declaration%0A%0A%7D%0A

Create the interface to use retofix