reliza.java.client.RHService Maven / Gradle / Ivy
Show all versions of reliza-java-client Show documentation
package reliza.java.client;
import java.util.Map;
import reliza.java.client.responses.GraphQLResponse;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Headers;
import retrofit2.http.POST;
/**
* Class for making API calls using retrofit, see https://square.github.io/retrofit
* All request payloads are taken as Map<String,Object> and converted to JSON using JacksonConverterFactory.
*/
public interface RHService {
@Headers({
"Content-Type: application/json",
"User-Agent: Reliza Java Client",
"Accept-Encoding: gzip, deflate"
})
/**
* POST request corresponding to getVersion method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call getVersion(@Body Map body);
/**
* POST request corresponding to addRelease method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call addRelease(@Body Map body);
/**
* POST request corresponding to checkHash method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call checkHash(@Body Map body);
/**
* POST request corresponding to instData method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call instData(@Body Map body);
/**
* POST request corresponding to prData method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call prData(@Body Map body);
/**
* POST request corresponding to getMyRelease method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call getMyRelease(@Body Map body);
/**
* POST request corresponding to getLatestRelease method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call getLatestRelease(@Body Map body);
/**
* PUT request corresponding to approveRelease method.
* @param body - request payload.
* @return graphql response from API.
*/
@POST("/graphql")
Call approveRelease(@Body Map body);
}