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