// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/Item.java
// @lombok.Getter
// public class Item {
// 
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Name")
// 	private String name;
// 	
// 	public Item() {
// 		super();
// 	}
// 	
// 	public Item(String itemCode, String name) {
// 		this.itemCode = itemCode;
// 		this.name = name;
// 	}
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/Price.java
// @lombok.Getter
// public class Price {
// 
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Price")
// 	private String price;
// 	
// 	public Price(){
// 		super();
// 	}
// 	
// 	public Price(String itemCode, String price) {
// 		this();
// 		this.itemCode = itemCode;
// 		this.price = price;
// 	}
// 
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/TrayItem.java
// public class TrayItem {
// 
// 	@JsonProperty("Name")
// 	private String name;
// 	@JsonProperty("Price")
// 	private String amount;
// 	
// 
// 	public TrayItem() {
// 		super();
// 	}
// 	
// 	public TrayItem(String name, String amount) {
// 		this.name = name;
// 		this.amount = amount;
// 	}
// 	
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	public String getAmount() {
// 		return amount;
// 	}
// 	
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/ItemServiceRepository.java
// @FeignClient(value="ITEM-SERVICE", fallback=ItemServiceFallback.class)
// public interface ItemServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/items/search/findByItemCode?itemCode={itemCode}")
// 	Item findByItemCode(@PathVariable("itemCode") String itemCode);
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/PriceServiceRepository.java
// @FeignClient(value="PRICE-SERVICE", fallback=PriceServiceRepository.class)
// public interface PriceServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/prices/search/findByItemCode?itemCode={itemCode}")
// 	Price findByItemCode(@PathVariable("itemCode") String itemCode);
// }


import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.github.joffryferrater.foodtrayservice.domain.Item;
import com.github.joffryferrater.foodtrayservice.domain.Price;
import com.github.joffryferrater.foodtrayservice.domain.TrayItem;
import com.github.joffryferrater.foodtrayservice.repository.ItemServiceRepository;
import com.github.joffryferrater.foodtrayservice.repository.PriceServiceRepository;

package com.github.joffryferrater.foodtrayservice;





/**
 * 
 * @author Joffry Ferrater
 *
 */
@RestController
@RequestMapping("/foodtrays")
public class FoodTrayController {

	@Autowired

// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/Item.java
// @lombok.Getter
// public class Item {
// 
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Name")
// 	private String name;
// 	
// 	public Item() {
// 		super();
// 	}
// 	
// 	public Item(String itemCode, String name) {
// 		this.itemCode = itemCode;
// 		this.name = name;
// 	}
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/Price.java
// @lombok.Getter
// public class Price {
// 
// 	@JsonProperty("Item Code")
// 	private String itemCode;
// 	@JsonProperty("Price")
// 	private String price;
// 	
// 	public Price(){
// 		super();
// 	}
// 	
// 	public Price(String itemCode, String price) {
// 		this();
// 		this.itemCode = itemCode;
// 		this.price = price;
// 	}
// 
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/domain/TrayItem.java
// public class TrayItem {
// 
// 	@JsonProperty("Name")
// 	private String name;
// 	@JsonProperty("Price")
// 	private String amount;
// 	
// 
// 	public TrayItem() {
// 		super();
// 	}
// 	
// 	public TrayItem(String name, String amount) {
// 		this.name = name;
// 		this.amount = amount;
// 	}
// 	
// 	public String getName() {
// 		return name;
// 	}
// 	
// 	public String getAmount() {
// 		return amount;
// 	}
// 	
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/ItemServiceRepository.java
// @FeignClient(value="ITEM-SERVICE", fallback=ItemServiceFallback.class)
// public interface ItemServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/items/search/findByItemCode?itemCode={itemCode}")
// 	Item findByItemCode(@PathVariable("itemCode") String itemCode);
// }
// 
// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/repository/PriceServiceRepository.java
// @FeignClient(value="PRICE-SERVICE", fallback=PriceServiceRepository.class)
// public interface PriceServiceRepository {
// 
// 	@RequestMapping(method=RequestMethod.GET, value="/prices/search/findByItemCode?itemCode={itemCode}")
// 	Price findByItemCode(@PathVariable("itemCode") String itemCode);
// }


// Path: FoodTrayService/src/main/java/com/github/joffryferrater/foodtrayservice/FoodTrayController.java
import java.util.ArrayList;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;
import com.github.joffryferrater.foodtrayservice.domain.Item;
import com.github.joffryferrater.foodtrayservice.domain.Price;
import com.github.joffryferrater.foodtrayservice.domain.TrayItem;
import com.github.joffryferrater.foodtrayservice.repository.ItemServiceRepository;
import com.github.joffryferrater.foodtrayservice.repository.PriceServiceRepository;

package com.github.joffryferrater.foodtrayservice;





/**
 * 
 * @author Joffry Ferrater
 *
 */
@RestController
@RequestMapping("/foodtrays")
public class FoodTrayController {

	@Autowired

	ItemServiceRepository itemServiceRepository;
