47 lines
1.2 KiB
Java
47 lines
1.2 KiB
Java
package org.gcube.data.publishing.gCatFeeder.service.rest;
|
|
|
|
import javax.inject.Inject;
|
|
import javax.ws.rs.GET;
|
|
import javax.ws.rs.POST;
|
|
import javax.ws.rs.Path;
|
|
import javax.ws.rs.Produces;
|
|
import javax.ws.rs.WebApplicationException;
|
|
import javax.ws.rs.core.MediaType;
|
|
import javax.ws.rs.core.Response;
|
|
|
|
import org.gcube.data.publishing.gCatFeeder.service.ServiceConstants;
|
|
import org.gcube.data.publishing.gCatFeeder.service.engine.FeederEngine;
|
|
import org.gcube.data.publishing.gCatFeeder.service.model.ExecutionDescriptor;
|
|
|
|
@Path(ServiceConstants.Executions.PATH)
|
|
public class Executions {
|
|
|
|
@Inject
|
|
private FeederEngine engine;
|
|
|
|
|
|
@POST
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
public ExecutionDescriptor submit() {
|
|
throw new WebApplicationException("Method Unavailable.", Response.Status.NOT_IMPLEMENTED);
|
|
}
|
|
|
|
|
|
@GET
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
public Response getAll() {
|
|
|
|
|
|
|
|
|
|
throw new WebApplicationException("Method Unavailable.", Response.Status.NOT_IMPLEMENTED);
|
|
}
|
|
|
|
@GET
|
|
@Produces(MediaType.APPLICATION_JSON)
|
|
@Path("{"+ServiceConstants.Executions.EXECUTION_ID_PARAMETER+"}")
|
|
public ExecutionDescriptor get() {
|
|
throw new WebApplicationException("Method Unavailable.", Response.Status.NOT_IMPLEMENTED);
|
|
}
|
|
}
|