src/main/java/br/ufpa/labes/spm/web/rest/ProcessResource.java
@PostMapping("/processes")
  public ResponseEntity<Process> createProcess(@Valid @RequestBody Process process)
      throws URISyntaxException, RepositoryQueryException {
    log.debug("REST request to save Process : {}", process);
    Process result = processServices.saveProcess(process);
    return ResponseEntity.created(new URI("/api/processes/" + result.getId()))
        .headers(
            HeaderUtil.createEntityCreationAlert(
                applicationName, true, ENTITY_NAME, result.getId().toString()))
        .body(result);
  }
/**
   * {@code POST /processes} : Create a new process.
   *
   * @param process the process to create.
   * @return the {@link ResponseEntity} with status {@code 201 (Created)} and with body the new
   *     process, or with status {@code 400 (Bad Request)} if the process has already an ID.
   * @throws URISyntaxException if the Location URI syntax is incorrect.
   */
POST /processes : Create a new process.
@param process the process to create.
@return the  ResponseEntity with status  201 (Created) and with body the new
process, or with status  400 (Bad Request) if the process has already an ID.
@throws URISyntaxException if the Location URI syntax is incorrect.
POST / processes : Create a new process . @param process the process to create . @return the ResponseEntity with status 201 ( Created ) and with body the new process or with status 400 ( Bad Request ) if the process has already an ID . @throws URISyntaxException if the Location URI syntax is incorrect .
@PostMapping("/processes")
  public ResponseEntity<Process> createProcess(@Valid @RequestBody Process process)
      throws URISyntaxException, RepositoryQueryException {
    log.debug("REST request to save Process : {}", process);
    Process result = processServices.saveProcess(process);
    return ResponseEntity.created(new URI("/api/processes/" + result.getId()))
        .headers(
            HeaderUtil.createEntityCreationAlert(
                applicationName, true, ENTITY_NAME, result.getId().toString()))
        .body(result);
  }
@ PostMapping ( "/processes" ) public ResponseEntity < Process > createProcess ( @ Valid @ RequestBody Process process ) throws URISyntaxException , RepositoryQueryException { log . debug ( "REST request to save Process : {}" , process ) ; Process result = processServices . saveProcess ( process ) ; return ResponseEntity . created ( new URI ( "/api/processes/" + result . getId ( ) ) ) . headers ( HeaderUtil . createEntityCreationAlert ( applicationName , true , ENTITY_NAME , result . getId ( ) . toString ( ) ) ) . body ( result ) ; }
{@code POST /processes} : Create a new process.
{ @code POST / processes } : Create a new process .