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