@Test public void testFindTechnologies() { List<Technology> technologies = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); assertNotNull(technologies); }
@GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) public Response findTechnologies() { if (isDebugEnabled) { S_LOGGER.debug("Entered into ComponentService.findTechnologies()"); } try { List<Technology> techList = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); if (techList != null) { return Response.status(Response.Status.OK).entity(techList).build(); } } catch (Exception e) { throw new PhrescoWebServiceException(e, EX_PHEX00005, TECHNOLOGIES_COLLECTION_NAME); } return Response.status(Response.Status.NO_CONTENT).entity(ERROR_MSG_NOT_FOUND).build(); }
ComponentService extends DbService implements ServiceConstants { @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) public Response findTechnologies() { if (isDebugEnabled) { S_LOGGER.debug("Entered into ComponentService.findTechnologies()"); } try { List<Technology> techList = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); if (techList != null) { return Response.status(Response.Status.OK).entity(techList).build(); } } catch (Exception e) { throw new PhrescoWebServiceException(e, EX_PHEX00005, TECHNOLOGIES_COLLECTION_NAME); } return Response.status(Response.Status.NO_CONTENT).entity(ERROR_MSG_NOT_FOUND).build(); } }
ComponentService extends DbService implements ServiceConstants { @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) public Response findTechnologies() { if (isDebugEnabled) { S_LOGGER.debug("Entered into ComponentService.findTechnologies()"); } try { List<Technology> techList = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); if (techList != null) { return Response.status(Response.Status.OK).entity(techList).build(); } } catch (Exception e) { throw new PhrescoWebServiceException(e, EX_PHEX00005, TECHNOLOGIES_COLLECTION_NAME); } return Response.status(Response.Status.NO_CONTENT).entity(ERROR_MSG_NOT_FOUND).build(); } ComponentService(); }
ComponentService extends DbService implements ServiceConstants { @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) public Response findTechnologies() { if (isDebugEnabled) { S_LOGGER.debug("Entered into ComponentService.findTechnologies()"); } try { List<Technology> techList = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); if (techList != null) { return Response.status(Response.Status.OK).entity(techList).build(); } } catch (Exception e) { throw new PhrescoWebServiceException(e, EX_PHEX00005, TECHNOLOGIES_COLLECTION_NAME); } return Response.status(Response.Status.NO_CONTENT).entity(ERROR_MSG_NOT_FOUND).build(); } ComponentService(); @GET @Path (REST_API_APPTYPES) @Produces (MediaType.APPLICATION_JSON) Response findAppTypes(@QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES) Response createAppTypes(List<ApplicationType> appTypes); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES) Response updateAppTypes(List<ApplicationType> appTypes); @DELETE @Path (REST_API_APPTYPES) @Produces (MediaType.TEXT_PLAIN) void deleteAppTypes(List<ApplicationType> appTypes); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response getApptype(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response updateAppType(@PathParam(REST_API_PATH_PARAM_ID) String id , ApplicationType appType); @DELETE @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response deleteAppType(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_SETTINGS) @Produces (MediaType.APPLICATION_JSON) Response findSettings(); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS) Response createSettings(List<SettingsTemplate> settings); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS) Response updateSettings(List<SettingsTemplate> settings); @DELETE @Path (REST_API_SETTINGS) void deleteSettings(List<SettingsTemplate> settings); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response getSettingsTemplate(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response updateSetting(@PathParam(REST_API_PATH_PARAM_ID) String id , SettingsTemplate settingsTemplate); @DELETE @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response deleteSettingsTemplate(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_MODULES) @Produces (MediaType.APPLICATION_JSON) Response findModules(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_TYPE) String type, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES) Response createModules(List<ModuleGroup> modules); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES) Response updateModules(List<ModuleGroup> modules); @DELETE @Path (REST_API_MODULES) void deleteModules(List<ModuleGroup> modules); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES + REST_API_PATH_ID) Response getModule(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES + REST_API_PATH_ID) Response updatemodule(@PathParam(REST_API_PATH_PARAM_ID) String id , ModuleGroup module); @DELETE @Path (REST_API_MODULES + REST_API_PATH_ID) Response deleteModules(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_PILOTS) @Produces (MediaType.APPLICATION_JSON) Response findPilots(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS) Response createPilots(List<ProjectInfo> projectInfos); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS) Response updatePilots(List<ProjectInfo> pilots); @DELETE @Path (REST_API_PILOTS) void deletePilots(List<ProjectInfo> pilots); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS + REST_API_PATH_ID) Response getPilot(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS + REST_API_PATH_ID) Response updatePilot(@PathParam(REST_API_PATH_PARAM_ID) String id , ProjectInfo pilot); @DELETE @Path (REST_API_PILOTS + REST_API_PATH_ID) Response deletePilot(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_SERVERS) @Produces (MediaType.APPLICATION_JSON) Response findServers(@QueryParam(REST_QUERY_TECHID) String techId, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS) Response createServers(List<Server> servers); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS) Response updateServers(List<Server> servers); @DELETE @Path (REST_API_SERVERS) void deleteServers(List<Server> servers); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS + REST_API_PATH_ID) Response getServer(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS + REST_API_PATH_ID) Response updateServer(@PathParam(REST_API_PATH_PARAM_ID) String id , Server server); @DELETE @Path (REST_API_SERVERS + REST_API_PATH_ID) Response deleteServer(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_DATABASES) @Produces (MediaType.APPLICATION_JSON) Response findDatabases(@QueryParam(REST_QUERY_TECHID) String techId, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES) Response createDatabases(List<Database> databases); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES) Response updateDatabases(List<Database> databases); @DELETE @Path (REST_API_DATABASES) void deleteDatabases(List<Database> databases); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES + REST_API_PATH_ID) Response getDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES + REST_API_PATH_ID) Response updateDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id , Database database); @DELETE @Path (REST_API_DATABASES + REST_API_PATH_ID) Response deleteDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_WEBSERVICES) @Produces (MediaType.APPLICATION_JSON) Response findWebServices(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES) Response createWebServices(List<WebService> webServices); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES) Response updateWebServices(List<WebService> webServices); @DELETE @Path (REST_API_WEBSERVICES) void deleteWebServices(List<WebService> webServices); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response getWebService(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response updateWebService(@PathParam(REST_API_PATH_PARAM_ID) String id , WebService webService); @DELETE @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response deleteWebService(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) Response findTechnologies(); @POST @Consumes (MultiPartMediaTypes.MULTIPART_MIXED) @Path (REST_API_TECHNOLOGIES) Response createTechnologies(@QueryParam("appId") String appTypeId, 
	        MultiPart multiPart); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES) Response updateTechnologies(List<Technology> technologies); @DELETE @Path (REST_API_TECHNOLOGIES) void deleteTechnologies(List<WebService> technologies); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response getTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response updateTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id , Technology technology); @DELETE @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response deleteTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id); }
ComponentService extends DbService implements ServiceConstants { @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) public Response findTechnologies() { if (isDebugEnabled) { S_LOGGER.debug("Entered into ComponentService.findTechnologies()"); } try { List<Technology> techList = mongoOperation.getCollection(TECHNOLOGIES_COLLECTION_NAME , Technology.class); if (techList != null) { return Response.status(Response.Status.OK).entity(techList).build(); } } catch (Exception e) { throw new PhrescoWebServiceException(e, EX_PHEX00005, TECHNOLOGIES_COLLECTION_NAME); } return Response.status(Response.Status.NO_CONTENT).entity(ERROR_MSG_NOT_FOUND).build(); } ComponentService(); @GET @Path (REST_API_APPTYPES) @Produces (MediaType.APPLICATION_JSON) Response findAppTypes(@QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES) Response createAppTypes(List<ApplicationType> appTypes); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES) Response updateAppTypes(List<ApplicationType> appTypes); @DELETE @Path (REST_API_APPTYPES) @Produces (MediaType.TEXT_PLAIN) void deleteAppTypes(List<ApplicationType> appTypes); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response getApptype(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response updateAppType(@PathParam(REST_API_PATH_PARAM_ID) String id , ApplicationType appType); @DELETE @Path (REST_API_APPTYPES + REST_API_PATH_ID) Response deleteAppType(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_SETTINGS) @Produces (MediaType.APPLICATION_JSON) Response findSettings(); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS) Response createSettings(List<SettingsTemplate> settings); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS) Response updateSettings(List<SettingsTemplate> settings); @DELETE @Path (REST_API_SETTINGS) void deleteSettings(List<SettingsTemplate> settings); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response getSettingsTemplate(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response updateSetting(@PathParam(REST_API_PATH_PARAM_ID) String id , SettingsTemplate settingsTemplate); @DELETE @Path (REST_API_SETTINGS + REST_API_PATH_ID) Response deleteSettingsTemplate(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_MODULES) @Produces (MediaType.APPLICATION_JSON) Response findModules(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_TYPE) String type, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES) Response createModules(List<ModuleGroup> modules); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES) Response updateModules(List<ModuleGroup> modules); @DELETE @Path (REST_API_MODULES) void deleteModules(List<ModuleGroup> modules); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES + REST_API_PATH_ID) Response getModule(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_MODULES + REST_API_PATH_ID) Response updatemodule(@PathParam(REST_API_PATH_PARAM_ID) String id , ModuleGroup module); @DELETE @Path (REST_API_MODULES + REST_API_PATH_ID) Response deleteModules(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_PILOTS) @Produces (MediaType.APPLICATION_JSON) Response findPilots(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS) Response createPilots(List<ProjectInfo> projectInfos); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS) Response updatePilots(List<ProjectInfo> pilots); @DELETE @Path (REST_API_PILOTS) void deletePilots(List<ProjectInfo> pilots); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS + REST_API_PATH_ID) Response getPilot(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_PILOTS + REST_API_PATH_ID) Response updatePilot(@PathParam(REST_API_PATH_PARAM_ID) String id , ProjectInfo pilot); @DELETE @Path (REST_API_PILOTS + REST_API_PATH_ID) Response deletePilot(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_SERVERS) @Produces (MediaType.APPLICATION_JSON) Response findServers(@QueryParam(REST_QUERY_TECHID) String techId, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS) Response createServers(List<Server> servers); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS) Response updateServers(List<Server> servers); @DELETE @Path (REST_API_SERVERS) void deleteServers(List<Server> servers); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS + REST_API_PATH_ID) Response getServer(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_SERVERS + REST_API_PATH_ID) Response updateServer(@PathParam(REST_API_PATH_PARAM_ID) String id , Server server); @DELETE @Path (REST_API_SERVERS + REST_API_PATH_ID) Response deleteServer(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_DATABASES) @Produces (MediaType.APPLICATION_JSON) Response findDatabases(@QueryParam(REST_QUERY_TECHID) String techId, 
	        @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES) Response createDatabases(List<Database> databases); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES) Response updateDatabases(List<Database> databases); @DELETE @Path (REST_API_DATABASES) void deleteDatabases(List<Database> databases); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES + REST_API_PATH_ID) Response getDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_DATABASES + REST_API_PATH_ID) Response updateDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id , Database database); @DELETE @Path (REST_API_DATABASES + REST_API_PATH_ID) Response deleteDatabase(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_WEBSERVICES) @Produces (MediaType.APPLICATION_JSON) Response findWebServices(@QueryParam(REST_QUERY_TECHID) String techId, @QueryParam(REST_QUERY_CUSTOMERID) String customerId); @POST @Consumes (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES) Response createWebServices(List<WebService> webServices); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES) Response updateWebServices(List<WebService> webServices); @DELETE @Path (REST_API_WEBSERVICES) void deleteWebServices(List<WebService> webServices); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response getWebService(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response updateWebService(@PathParam(REST_API_PATH_PARAM_ID) String id , WebService webService); @DELETE @Path (REST_API_WEBSERVICES + REST_API_PATH_ID) Response deleteWebService(@PathParam(REST_API_PATH_PARAM_ID) String id); @GET @Path (REST_API_TECHNOLOGIES) @Produces (MediaType.APPLICATION_JSON) Response findTechnologies(); @POST @Consumes (MultiPartMediaTypes.MULTIPART_MIXED) @Path (REST_API_TECHNOLOGIES) Response createTechnologies(@QueryParam("appId") String appTypeId, 
	        MultiPart multiPart); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES) Response updateTechnologies(List<Technology> technologies); @DELETE @Path (REST_API_TECHNOLOGIES) void deleteTechnologies(List<WebService> technologies); @GET @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response getTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id); @PUT @Consumes (MediaType.APPLICATION_JSON) @Produces (MediaType.APPLICATION_JSON) @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response updateTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id , Technology technology); @DELETE @Path (REST_API_TECHNOLOGIES + REST_API_PATH_ID) Response deleteTechnology(@PathParam(REST_API_PATH_PARAM_ID) String id);  }