示例#1
0
 /** PUT /servicess -> Updates an existing services. */
 @RequestMapping(
     value = "/servicess",
     method = RequestMethod.PUT,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @Timed
 public ResponseEntity<Services> updateServices(@Valid @RequestBody Services services)
     throws URISyntaxException {
   log.debug("REST request to update Services : {}", services);
   if (services.getId() == null) {
     return createServices(services);
   }
   Services result = servicesService.save(services);
   return ResponseEntity.ok()
       .headers(HeaderUtil.createEntityUpdateAlert("services", services.getId().toString()))
       .body(result);
 }
示例#2
0
 /** PUT /education_levels -> Updates an existing education_level. */
 @RequestMapping(
     value = "/education_levels",
     method = RequestMethod.PUT,
     produces = MediaType.APPLICATION_JSON_VALUE)
 @Timed
 public ResponseEntity<Education_level> updateEducation_level(
     @Valid @RequestBody Education_level education_level) throws URISyntaxException {
   log.debug("REST request to update Education_level : {}", education_level);
   if (education_level.getId() == null) {
     return createEducation_level(education_level);
   }
   Education_level result = education_levelService.save(education_level);
   return ResponseEntity.ok()
       .headers(
           HeaderUtil.createEntityUpdateAlert(
               "education_level", education_level.getId().toString()))
       .body(result);
 }