package com.github.sbugat.samplerest.resource;

import javax.inject.Inject;
import javax.ws.rs.Consumes;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.github.sbugat.samplerest.service.OrikaBeanMapper;

@Consumes({ GenericResource.API_VERSION1_MEDIA_TYPE, GenericResource.API_VERSION2_MEDIA_TYPE })
@Produces(MediaType.APPLICATION_JSON)
public abstract class GenericResource {

	protected final static String API_VERSION1_MEDIA_TYPE = "application/apiv1+json";

	protected final static String API_VERSION2_MEDIA_TYPE = "application/apiv2+json";

	@Inject
	protected OrikaBeanMapper orikaBeanMapper;
}

@@ -135,44 +135,8 @@
 es;%0D
-%0Aimport javax.ws.rs.core.MediaType;%0D
 %0A%0D%0Ai
@@ -309,34 +309,92 @@
 ces(
-MediaType.APPLICATION_JSON
+%7B GenericResource.API_VERSION1_MEDIA_TYPE, GenericResource.API_VERSION2_MEDIA_TYPE %7D
 )%0D%0Ap

Add @Produces on GenericResource