Skip to content

Commit

Permalink
https://docs.portalunico.siscomex.gov.br/rn/r51-reno/
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Facchinello committed Jun 19, 2023
1 parent 66de2e7 commit b325c02
Show file tree
Hide file tree
Showing 663 changed files with 23,890 additions and 17,292 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@

# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
hs_err_pid*
/.idea/
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>samuelfac</groupId>
<artifactId>portalunico.siscomex.gov.br</artifactId>
<version>torne</version>
<version>r51-reno</version>
<name>PortalUnicoSiscomex</name>

<description>Classes da API do Portal Único de Comércio Exterior, a nova forma de interação entre as empresas privadas e os diversos órgãos públicos intervenientes no comércio exterior.</description>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,10 @@
package br.gov.siscomex.portalunico.cadatributos.api;


import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.Response;
import io.swagger.annotations.*;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;

/**
* Cadastro de Atributos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,27 +1,14 @@
package br.gov.siscomex.portalunico.catp.api;

import java.util.List;
import br.gov.siscomex.portalunico.catp.model.LoteValidacaoVersaoDTO;
import br.gov.siscomex.portalunico.catp.model.OperadorEstrangeiroIntegracaoDTO;
import io.swagger.annotations.*;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.ws.rs.Consumes;
import javax.ws.rs.DefaultValue;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;

import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import br.gov.siscomex.portalunico.catp.model.OperadorEstrangeiroIntegracaoDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;

/**
* Catálogo de Produtos
Expand Down Expand Up @@ -98,7 +85,7 @@ public interface OperadorEstrangeiroApi {
@Produces({ "application/json" })
@ApiOperation(value = "Incluir/Retificar Operador Estrangeiro", notes = "", tags={ "Operador Estrangeiro" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Operação realizada com sucesso", response = LoteValidacaoDTO.class, responseContainer = "List"),
@ApiResponse(code = 200, message = "Operação realizada com sucesso", response = LoteValidacaoVersaoDTO.class, responseContainer = "List"),
@ApiResponse(code = 204, message = "Operação realizada com sucesso. Nenhum conteúdo retornado"),
@ApiResponse(code = 400, message = "Requisição mal formatada"),
@ApiResponse(code = 401, message = "Usuário não autenticado ou autenticação inválida"),
Expand Down
24 changes: 6 additions & 18 deletions src/main/java/br/gov/siscomex/portalunico/catp/api/ProdutoApi.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,14 @@
package br.gov.siscomex.portalunico.catp.api;

import java.util.List;
import br.gov.siscomex.portalunico.catp.model.LoteValidacaoVersaoDTO;
import br.gov.siscomex.portalunico.catp.model.ProdutoIntegracaoDTO;
import io.swagger.annotations.*;

import javax.validation.Valid;
import javax.validation.constraints.NotNull;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;

import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import br.gov.siscomex.portalunico.catp.model.ProdutoIntegracaoDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;

/**
* Catálogo de Produtos
Expand Down Expand Up @@ -98,7 +86,7 @@ public interface ProdutoApi {
@Produces({ "application/json" })
@ApiOperation(value = "Incluir/Retificar Produtos", notes = "", tags={ "Produto" })
@ApiResponses(value = {
@ApiResponse(code = 200, message = "Operação realizada com sucesso", response = LoteValidacaoDTO.class, responseContainer = "List"),
@ApiResponse(code = 200, message = "Operação realizada com sucesso", response = LoteValidacaoVersaoDTO.class, responseContainer = "List"),
@ApiResponse(code = 204, message = "Operação realizada com sucesso. Nenhum conteúdo retornado"),
@ApiResponse(code = 400, message = "Requisição mal formatada"),
@ApiResponse(code = 401, message = "Usuário não autenticado ou autenticação inválida"),
Expand Down
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
package br.gov.siscomex.portalunico.catp.api;

import java.util.List;
import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import br.gov.siscomex.portalunico.catp.model.RegimeEspecialIntegracaoDTO;
import io.swagger.annotations.*;

import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;

import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import br.gov.siscomex.portalunico.catp.model.RegimeEspecialIntegracaoDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;

/**
* Catálogo de Produtos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,24 +1,13 @@
package br.gov.siscomex.portalunico.catp.api;

import java.util.List;
import br.gov.siscomex.portalunico.catp.model.FabricanteIntegracaoDTO;
import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import io.swagger.annotations.*;

import javax.validation.Valid;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.HeaderParam;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.*;
import javax.ws.rs.core.Response;

import br.gov.siscomex.portalunico.catp.model.FabricanteIntegracaoDTO;
import br.gov.siscomex.portalunico.catp.model.LoteValidacaoDTO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import java.util.List;

/**
* Catálogo de Produtos
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package br.gov.siscomex.portalunico.catp.model;

import java.time.OffsetDateTime;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.*;
import java.time.OffsetDateTime;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "FabricanteIntegracaoDTO", propOrder =
{ "seq", "cpfCnpjRaiz", "codigoOperadorEstrangeiro", "cpfCnpjFabricante", "conhecido", "codigoProduto", "vincular", "dataReferencia", "codigoPais"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
package br.gov.siscomex.portalunico.catp.model;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.*;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "IdentificacaoAdicionalIntegracaoDTO", propOrder =
{ "numero", "codigo"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,12 @@
package br.gov.siscomex.portalunico.catp.model;

import java.util.List;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

import com.fasterxml.jackson.annotation.JsonProperty;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.xml.bind.annotation.*;
import java.util.List;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "LoteValidacaoDTO", propOrder =
{ "seq", "codigo", "erros", "sucesso"
Expand Down
Loading

0 comments on commit b325c02

Please sign in to comment.