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