@GET @Path("searchSeriNo/{cihazSeriNo}") @Produces("application/json") public Response searchSeriNo(@PathParam("cihazSeriNo") String cihazSeriNo) { LCD entity = dao.searchRest(0, cihazSeriNo); if (entity != null) return Response.ok(entity).build(); return Response.noContent().build(); }
@GET @Path("searchBarkod/{barkod}") @Produces("application/json") public Response searchBarkod(@PathParam("barkod") Integer barkod) { LCD entity = dao.searchRest(barkod, null); if (entity != null) return Response.ok(entity).build(); return Response.noContent().build(); }