@POST
@Path("/")
@Consumes({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
@Produces({MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML})
public Response createCategory(@Context UriInfo uriInfo, CategoryDTO categoryDTO) {
CategoryDTO category = categoryService.create(uriInfo, categoryDTO);
return Response.status(Response.Status.CREATED)
.header("Location", category.getUri()).build();
}