package io.subutai.core.executor.rest;


import javax.ws.rs.FormParam;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;
import javax.ws.rs.core.Response;


public interface RestService
{

    @POST
    @Path( "heartbeat" )
    @Produces( { MediaType.TEXT_PLAIN } )
    Response processHeartbeat( @FormParam( "heartbeat" ) String heartbeat );

    @POST
    @Path( "response" )
    @Produces( { MediaType.TEXT_PLAIN } )
    Response processResponse( @FormParam( "response" ) String response );

    @GET
    @Path( "requests/{hostId}" )
    @Produces( { MediaType.APPLICATION_JSON } )
    Response getRequests( @PathParam( "hostId" ) String hostId );
}

@@ -34,16 +34,45 @@
 rest;%0A%0A%0A
+import javax.ws.rs.Consumes;%0A
 import j
@@ -361,38 +361,38 @@
 artbeat%22 )%0A    @
-Produc
+Consum
 es( %7B MediaType.
@@ -387,33 +387,39 @@
 %7B MediaType.
-TEXT_PLAI
+APPLICATION_JSO
 N %7D )%0A    Re
@@ -521,38 +521,38 @@
 esponse%22 )%0A    @
-Produc
+Consum
 es( %7B MediaType.
@@ -555,17 +555,23 @@
 ype.
-TEXT_PLAI
+APPLICATION_JSO
 N %7D 

fix of media types