package org.apache.taverna.mobile.data.remote;


import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import retrofit2.http.Body;
import retrofit2.http.Header;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import rx.Observable;

public interface TavernaPlayerService {

    @POST("/workflows.json")
    @Headers({
            APIEndPoint.JSON_CONTENT_HEADER,
            APIEndPoint.UTF_CONTENT_ENCODING_HEADER})
    Observable<ResponseBody> uploadWorkflow(@Body RequestBody body, @Header("Authorization") String
            authorization);

}

@@ -42,16 +42,143 @@
 mote;%0A%0A%0A
+import org.apache.taverna.mobile.data.model.PlayerWorkflow;%0Aimport org.apache.taverna.mobile.data.model.PlayerWorkflowDetail;%0A%0A
 import o
@@ -250,24 +250,51 @@
 .http.Body;%0A
+import retrofit2.http.GET;%0A
 import retro
@@ -370,16 +370,45 @@
 p.POST;%0A
+import retrofit2.http.Query;%0A
 import r
@@ -552,16 +552,60 @@
 HEADER,%0A
+            APIEndPoint.JSON_ACCEPT_HEADER,%0A
         
@@ -665,28 +665,30 @@
 ervable%3C
-ResponseBody
+PlayerWorkflow
 %3E upload
@@ -781,10 +781,450 @@
 tion);%0A%0A
+    @POST(%22/users/sign_in%22)%0A    @Headers(%7B%0A            APIEndPoint.XML_ACCEPT_HEADER%7D)%0A    Observable%3CResponseBody%3E playerlogin(@Header(%22Authorization%22) String%0A                                                 authorization);%0A%0A%0A    @GET(%22/runs/new%22)%0A    @Headers(%7B%0A            APIEndPoint.JSON_CONTENT_HEADER,%0A            APIEndPoint.JSON_ACCEPT_HEADER%7D)%0A    Observable%3CPlayerWorkflowDetail%3E getWorkflowDetail(@Query(%22workflow_id%22) int id);%0A
 %7D%0A

add methods in player service