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