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