author | František Kučera <franta-hg@frantovo.cz> |
Mon, 05 Apr 2010 15:21:14 +0200 | |
changeset 86 | eb6fce71e85c |
child 87 | 27ddd3691997 |
permissions | -rw-r--r-- |
franta-hg@86 | 1 |
package cz.frantovo.nekurak.rest; |
franta-hg@86 | 2 |
|
franta-hg@86 | 3 |
import javax.ws.rs.GET; |
franta-hg@86 | 4 |
import javax.ws.rs.Path; |
franta-hg@86 | 5 |
import javax.ws.rs.Produces; |
franta-hg@86 | 6 |
|
franta-hg@86 | 7 |
@Path("clanek") |
franta-hg@86 | 8 |
public class ClankyREST { |
franta-hg@86 | 9 |
|
franta-hg@86 | 10 |
@GET |
franta-hg@86 | 11 |
@Produces("text/plain") |
franta-hg@86 | 12 |
public String getText() { |
franta-hg@86 | 13 |
return "ahoj"; |
franta-hg@86 | 14 |
} |
franta-hg@86 | 15 |
} |