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