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