Bring consuming media type to method level

feature/appm-store/pbac
Yohan Avishke 5 years ago
parent 07abd78261
commit 867ea1d423

@ -112,10 +112,10 @@ import javax.ws.rs.core.Response;
description = "This API corresponds to services related to Analytics Artifacts management" description = "This API corresponds to services related to Analytics Artifacts management"
) )
@Path("/analytics/artifacts") @Path("/analytics/artifacts")
@Consumes(MediaType.APPLICATION_JSON)
public interface AnalyticsArtifactsManagementService { public interface AnalyticsArtifactsManagementService {
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/stream/{id}") @Path("/stream/{id}")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",
@ -179,6 +179,7 @@ public interface AnalyticsArtifactsManagementService {
@Valid EventStream stream); @Valid EventStream stream);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/stream") @Path("/stream")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",
@ -296,6 +297,7 @@ public interface AnalyticsArtifactsManagementService {
); );
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/receiver/{name}") @Path("/receiver/{name}")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",
@ -360,6 +362,7 @@ public interface AnalyticsArtifactsManagementService {
@Valid Adapter receiver); @Valid Adapter receiver);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/receiver") @Path("/receiver")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",
@ -478,6 +481,7 @@ public interface AnalyticsArtifactsManagementService {
@PathParam("name") String name); @PathParam("name") String name);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/publisher/{name}") @Path("/publisher/{name}")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",
@ -542,6 +546,7 @@ public interface AnalyticsArtifactsManagementService {
@Valid Adapter publisher); @Valid Adapter publisher);
@POST @POST
@Consumes(MediaType.APPLICATION_JSON)
@Path("/publisher") @Path("/publisher")
@ApiOperation( @ApiOperation(
httpMethod = "POST", httpMethod = "POST",

@ -780,7 +780,6 @@ public class AnalyticsArtifactsManagementServiceImpl
deployPublisherWithoutMapping(publisherName, eventStreamWithVersion, adapterType deployPublisherWithoutMapping(publisherName, eventStreamWithVersion, adapterType
, eventPublisherAdminServiceStub, basicOutputAdapterPropertyDtos); , eventPublisherAdminServiceStub, basicOutputAdapterPropertyDtos);
} }
} finally { } finally {
cleanup(eventPublisherAdminServiceStub); cleanup(eventPublisherAdminServiceStub);
} }

Loading…
Cancel
Save