com.boozallen.drift.detection.rest.client.DriftDetectionClient Maven / Gradle / Ivy
package com.boozallen.drift.detection.rest.client;
/*-
* #%L
* Drift Detection::Rest Client
* %%
* Copyright (C) 2021 Booz Allen
* %%
* This software package is licensed under the Booz Allen Public License. All Rights Reserved.
* #L%
*/
import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.eclipse.microprofile.rest.client.inject.RegisterRestClient;
import com.boozallen.drift.detection.DriftDetectionResult;
import com.boozallen.drift.detection.data.DriftDataInput;
@Path("/invoke-drift")
@RegisterRestClient
public interface DriftDetectionClient {
@POST
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public DriftDetectionResult invoke(@QueryParam("policyIdentifier") String policyIdentifier,
DriftDataInput driftDataInput);
}