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