| 1 | |
package com.buckosoft.PicMan.service; |
| 2 | |
|
| 3 | |
import java.util.List; |
| 4 | |
|
| 5 | |
import javax.jws.WebService; |
| 6 | |
import javax.ws.rs.Consumes; |
| 7 | |
import javax.ws.rs.GET; |
| 8 | |
import javax.ws.rs.Path; |
| 9 | |
import javax.ws.rs.Produces; |
| 10 | |
import javax.ws.rs.core.MediaType; |
| 11 | |
|
| 12 | |
import com.buckosoft.PicMan.domain.Root; |
| 13 | |
|
| 14 | |
@WebService |
| 15 | |
@Path("/root") |
| 16 | |
@Consumes({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) |
| 17 | |
@Produces({ MediaType.APPLICATION_JSON, MediaType.APPLICATION_XML }) |
| 18 | |
public interface RootService { |
| 19 | |
@GET |
| 20 | |
@Path("/roots") |
| 21 | |
public List<Root> getRoots(); |
| 22 | |
|
| 23 | |
} |