-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
/* | ||
* To change this license header, choose License Headers in Project Properties. | ||
* To change this template file, choose Tools | Templates | ||
* and open the template in the editor. | ||
*/ | ||
package recursos; | ||
|
||
import javax.ws.rs.core.Context; | ||
import javax.ws.rs.core.UriInfo; | ||
import javax.ws.rs.Produces; | ||
import javax.ws.rs.Consumes; | ||
import javax.ws.rs.GET; | ||
import javax.ws.rs.Path; | ||
import javax.ws.rs.PUT; | ||
import javax.ws.rs.core.MediaType; | ||
|
||
/** | ||
* REST Web Service | ||
* | ||
* @author Jose Junio | ||
*/ | ||
@Path("consulta") | ||
public class ConsultaResource { | ||
|
||
@Context | ||
private UriInfo context; | ||
|
||
/** | ||
* Creates a new instance of ConsultaResource | ||
*/ | ||
public ConsultaResource() { | ||
} | ||
|
||
/** | ||
* Retrieves representation of an instance of recursos.ConsultaResource | ||
* @return an instance of java.lang.String | ||
*/ | ||
@GET | ||
@Produces(MediaType.APPLICATION_JSON) | ||
public String getJson() { | ||
//TODO return proper representation object | ||
throw new UnsupportedOperationException(); | ||
} | ||
|
||
/** | ||
* PUT method for updating or creating an instance of ConsultaResource | ||
* @param content representation for the resource | ||
*/ | ||
@PUT | ||
@Consumes(MediaType.APPLICATION_JSON) | ||
public void putJson(String content) { | ||
} | ||
} |