src/main/java/br/ufpa/labes/spm/web/rest/GraphicCoordinateResource.java
@PostMapping("/graphic-coordinates")
  public ResponseEntity<GraphicCoordinate> createGraphicCoordinate(
      @RequestBody GraphicCoordinate graphicCoordinate) throws URISyntaxException {
    log.debug("REST request to save GraphicCoordinate : {}", graphicCoordinate);
    if (graphicCoordinate.getId() != null) {
      throw new BadRequestAlertException(
          "A new graphicCoordinate cannot already have an ID", ENTITY_NAME, "idexists");
    }
    GraphicCoordinate result = graphicCoordinateRepository.save(graphicCoordinate);
    return ResponseEntity.created(new URI("/api/graphic-coordinates/" + result.getId()))
        .headers(
            HeaderUtil.createEntityCreationAlert(
                applicationName, true, ENTITY_NAME, result.getId().toString()))
        .body(result);
  }
/**
   * {@code POST /graphic-coordinates} : Create a new graphicCoordinate.
   *
   * @param graphicCoordinate the graphicCoordinate to create.
   * @return the {@link ResponseEntity} with status {@code 201 (Created)} and with body the new
   *     graphicCoordinate, or with status {@code 400 (Bad Request)} if the graphicCoordinate has
   *     already an ID.
   * @throws URISyntaxException if the Location URI syntax is incorrect.
   */
POST /graphic-coordinates : Create a new graphicCoordinate.
@param graphicCoordinate the graphicCoordinate to create.
@return the  ResponseEntity with status  201 (Created) and with body the new
graphicCoordinate, or with status  400 (Bad Request) if the graphicCoordinate has
already an ID.
@throws URISyntaxException if the Location URI syntax is incorrect.
POST / graphic - coordinates : Create a new graphicCoordinate . @param graphicCoordinate the graphicCoordinate to create . @return the ResponseEntity with status 201 ( Created ) and with body the new graphicCoordinate or with status 400 ( Bad Request ) if the graphicCoordinate has already an ID . @throws URISyntaxException if the Location URI syntax is incorrect .
@PostMapping("/graphic-coordinates")
  public ResponseEntity<GraphicCoordinate> createGraphicCoordinate(
      @RequestBody GraphicCoordinate graphicCoordinate) throws URISyntaxException {
    log.debug("REST request to save GraphicCoordinate : {}", graphicCoordinate);
    if (graphicCoordinate.getId() != null) {
      throw new BadRequestAlertException(
          "A new graphicCoordinate cannot already have an ID", ENTITY_NAME, "idexists");
    }
    GraphicCoordinate result = graphicCoordinateRepository.save(graphicCoordinate);
    return ResponseEntity.created(new URI("/api/graphic-coordinates/" + result.getId()))
        .headers(
            HeaderUtil.createEntityCreationAlert(
                applicationName, true, ENTITY_NAME, result.getId().toString()))
        .body(result);
  }
@ PostMapping ( "/graphic-coordinates" ) public ResponseEntity < GraphicCoordinate > createGraphicCoordinate ( @ RequestBody GraphicCoordinate graphicCoordinate ) throws URISyntaxException { log . debug ( "REST request to save GraphicCoordinate : {}" , graphicCoordinate ) ; if ( graphicCoordinate . getId ( ) != null ) { throw new BadRequestAlertException ( "A new graphicCoordinate cannot already have an ID" , ENTITY_NAME , "idexists" ) ; } GraphicCoordinate result = graphicCoordinateRepository . save ( graphicCoordinate ) ; return ResponseEntity . created ( new URI ( "/api/graphic-coordinates/" + result . getId ( ) ) ) . headers ( HeaderUtil . createEntityCreationAlert ( applicationName , true , ENTITY_NAME , result . getId ( ) . toString ( ) ) ) . body ( result ) ; }
{@code POST /graphic-coordinates} : Create a new graphicCoordinate.
{ @code POST / graphic - coordinates } : Create a new graphicCoordinate .