/** * Example: GET /applications/1 * * @return list application by id */ @GET @Path("applications/{aid: \\d+}") @Produces(MediaType.APPLICATION_JSON) public Application getById(@PathParam("aid") Integer aid) { Application app = applicationRepository.getById(aid); return app; }