src/main/java/br/ufpa/labes/spm/web/rest/FeedbackResource.java
@PutMapping("/feedbacks")
  public ResponseEntity<Feedback> updateFeedback(@RequestBody Feedback feedback)
      throws URISyntaxException {
    log.debug("REST request to update Feedback : {}", feedback);
    if (feedback.getId() == null) {
      throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
    }
    Feedback result = feedbackRepository.save(feedback);
    return ResponseEntity.ok()
        .headers(
            HeaderUtil.createEntityUpdateAlert(
                applicationName, true, ENTITY_NAME, feedback.getId().toString()))
        .body(result);
  }
/**
   * {@code PUT /feedbacks} : Updates an existing feedback.
   *
   * @param feedback the feedback to update.
   * @return the {@link ResponseEntity} with status {@code 200 (OK)} and with body the updated
   *     feedback, or with status {@code 400 (Bad Request)} if the feedback is not valid, or with
   *     status {@code 500 (Internal Server Error)} if the feedback couldn't be updated.
   * @throws URISyntaxException if the Location URI syntax is incorrect.
   */
PUT /feedbacks : Updates an existing feedback.
@param feedback the feedback to update.
@return the  ResponseEntity with status  200 (OK) and with body the updated
feedback, or with status  400 (Bad Request) if the feedback is not valid, or with
status  500 (Internal Server Error) if the feedback couldn't be updated.
@throws URISyntaxException if the Location URI syntax is incorrect.
PUT / feedbacks : Updates an existing feedback . @param feedback the feedback to update . @return the ResponseEntity with status 200 ( OK ) and with body the updated feedback or with status 400 ( Bad Request ) if the feedback is not valid or with status 500 ( Internal Server Error ) if the feedback couldn ' t be updated . @throws URISyntaxException if the Location URI syntax is incorrect .
@PutMapping("/feedbacks")
  public ResponseEntity<Feedback> updateFeedback(@RequestBody Feedback feedback)
      throws URISyntaxException {
    log.debug("REST request to update Feedback : {}", feedback);
    if (feedback.getId() == null) {
      throw new BadRequestAlertException("Invalid id", ENTITY_NAME, "idnull");
    }
    Feedback result = feedbackRepository.save(feedback);
    return ResponseEntity.ok()
        .headers(
            HeaderUtil.createEntityUpdateAlert(
                applicationName, true, ENTITY_NAME, feedback.getId().toString()))
        .body(result);
  }
@ PutMapping ( "/feedbacks" ) public ResponseEntity < Feedback > updateFeedback ( @ RequestBody Feedback feedback ) throws URISyntaxException { log . debug ( "REST request to update Feedback : {}" , feedback ) ; if ( feedback . getId ( ) == null ) { throw new BadRequestAlertException ( "Invalid id" , ENTITY_NAME , "idnull" ) ; } Feedback result = feedbackRepository . save ( feedback ) ; return ResponseEntity . ok ( ) . headers ( HeaderUtil . createEntityUpdateAlert ( applicationName , true , ENTITY_NAME , feedback . getId ( ) . toString ( ) ) ) . body ( result ) ; }
{@code PUT /feedbacks} : Updates an existing feedback.
{ @code PUT / feedbacks } : Updates an existing feedback .