package com.ds.listing.rest;

import com.ds.listing.model.Listing;
import com.ds.listing.services.ListingService;

import java.util.ArrayList;

import javax.enterprise.inject.Produces;
import javax.inject.Inject;
import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("/rest/list")
public class ListingRestService {
  
  @Inject
  private ListingService service;
  
  @GET
  @Produces("application/json")
  public ArrayList<Listing> getAllListings() {
      return service.getAllListings();
  }
}

@@ -141,49 +141,8 @@
 t;%0A%0A
-import javax.enterprise.inject.Produces;%0A
 impo
@@ -213,16 +213,45 @@
 rs.Path;
+%0Aimport javax.ws.rs.Produces;
 %0A%0A@Path(

fix produces import