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