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