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