Skip to content

Commit

Permalink
Adicionado recurso Consulta
Browse files Browse the repository at this point in the history
  • Loading branch information
jjunio01 committed Nov 28, 2017
1 parent 6e0e4ef commit e2fb5b6
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions src/main/java/recursos/ConsultaResource.java
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) {
}
}

0 comments on commit e2fb5b6

Please sign in to comment.