예제 #1
0
 @DELETE
 @Consumes(MediaType.APPLICATION_JSON)
 @Path("/{id}")
 public void delete(@PathParam("id") String id) {
   Beacon beacon = bm.find(id);
   this.bm.delete(beacon);
 }
예제 #2
0
 @GET
 @Produces(MediaType.APPLICATION_JSON)
 @Path("/{id}")
 public Beacon findByID(@PathParam("id") String ID) {
   return bm.find(ID);
 }