// 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;
// 	}
// 
// }


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.github.joffryferrater.foodtrayservice.domain.Price;

package com.github.joffryferrater.foodtrayservice.repository;



/**
 * 
 * @author Joffry Ferrater
 *
 */
@FeignClient(value="PRICE-SERVICE", fallback=PriceServiceRepository.class)
public interface PriceServiceRepository {

	@RequestMapping(method=RequestMethod.GET, value="/prices/search/findByItemCode?itemCode={itemCode}")

// 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/repository/PriceServiceRepository.java
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import com.github.joffryferrater.foodtrayservice.domain.Price;

package com.github.joffryferrater.foodtrayservice.repository;



/**
 * 
 * @author Joffry Ferrater
 *
 */
@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);
