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