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