// Path: spring-data-solr-demo-common/src/main/java/org/tuxdevelop/spring/data/solr/demo/domain/StarbucksStore.java
// @Data
// @AllArgsConstructor
// @NoArgsConstructor
// @SolrDocument
// @XmlRootElement
// public class StarbucksStore {
// 
//     @Id
//     @Field("id")
//     private String id;
//     @Field("name")
//     private String name;
//     @Field("zipCode")
//     private String zipCode;
//     @Field("city")
//     private String city;
//     @Field("street")
//     private String street;
//     @Field("products")
//     private Collection<String> products;
//     @Field("services")
//     private Collection<String> services;
//     @JsonIgnore
//     @Field("location")
//     private Point location;
// 
// }


import org.tuxdevelop.spring.data.solr.demo.domain.StarbucksStore;
import javax.ws.rs.*;
import java.util.Collection;
import java.util.List;
package org.tuxdevelop.spring.data.solr.demo.api;




@Path("/stores")
public interface StoreService {

    String SEARCH = "/search";

    @POST
    @Path("/")
    @Produces("application/json")
    @Consumes("application/json")
    StarbucksStore add(final StarbucksStore starbucksStore);

    @GET
    @Path("/{id}")
    @Produces("application/json")
// Path: spring-data-solr-demo-common/src/main/java/org/tuxdevelop/spring/data/solr/demo/domain/StarbucksStore.java
// @Data
// @AllArgsConstructor
// @NoArgsConstructor
// @SolrDocument
// @XmlRootElement
// public class StarbucksStore {
// 
//     @Id
//     @Field("id")
//     private String id;
//     @Field("name")
//     private String name;
//     @Field("zipCode")
//     private String zipCode;
//     @Field("city")
//     private String city;
//     @Field("street")
//     private String street;
//     @Field("products")
//     private Collection<String> products;
//     @Field("services")
//     private Collection<String> services;
//     @JsonIgnore
//     @Field("location")
//     private Point location;
// 
// }


// Path: spring-data-solr-demo-jaxrs/src/main/java/org/tuxdevelop/spring/data/solr/demo/api/StoreService.java
import org.tuxdevelop.spring.data.solr.demo.domain.StarbucksStore;
import javax.ws.rs.*;
import java.util.Collection;
import java.util.List;

package org.tuxdevelop.spring.data.solr.demo.api;




@Path("/stores")
public interface StoreService {

    String SEARCH = "/search";

    @POST
    @Path("/")
    @Produces("application/json")
    @Consumes("application/json")
    StarbucksStore add(final StarbucksStore starbucksStore);

    @GET
    @Path("/{id}")
    @Produces("application/json")
    StarbucksStore get(@PathParam("id") String id);