package io.subutai.core.executor.rest;


import javax.ws.rs.Consumes;
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" )
    @Consumes( { MediaType.APPLICATION_JSON } )
    Response processHeartbeat( @FormParam( "heartbeat" ) String heartbeat );

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

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

@@ -395,36 +395,47 @@
 ype.APPLICATION_
-JSON
+FORM_URLENCODED
  %7D )%0A    Respons
@@ -566,36 +566,47 @@
 ype.APPLICATION_
-JSON
+FORM_URLENCODED
  %7D )%0A    Respons

fix of media types