Api Assembleia (Panagora) (1.0.0)

Download OpenAPI specification:Download

Api para sistema de assembleia online

Authentication

bearerAuth

Security Scheme Type HTTP
HTTP Authorization Scheme bearer

Retorna um ack para saber se a api esta online

Retorna ack com a data/hora atual para saber estado da api

Responses

Response samples

Content type
application/json
{
  • "ack": "1583783005"
}

Pega os dados do Evento, sem estar logado

Retorna os dados básicos do evento para montar a tela de login

path Parameters
sindicatoUrl
required
string
eventoUrl
required
string

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Assembleia da Pandora",
  • "tipoEventoId": 1,
  • "tipoAutenticacaoId": 2,
  • "podeCadastrarParticipante": false,
  • "podeVotarSeparado": false,
  • "ativo": true,
  • "dataHoraEventoInicio": "2017-07-21T17:32:28Z",
  • "sindicatoId": 2,
  • "tituloMatricula": "CRM",
  • "tituloUrna": "Fábrica",
  • "obrigatorioEmail": true,
  • "obrigatorioCelular": true,
  • "obrigatorioDataNascimento": true,
  • "obrigatorioCpf": true,
  • "obrigatorioMatricula": true,
  • "obrigatorioUrna": true,
  • "incluiFotoVotante": true,
  • "camposCustomizaveis": [
    ],
  • "temTermo": true,
}

Termo de Aceite

Retorna o html do termo

Authorizations:
bearerAuth (votante-temporario)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "termoHtml": "<b>termo</b>"
}

Descrição do evento

Retorna o html da descrição do evento

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Token não encontrado"
}

Gera um token de acesso (JWT) com o segredo da integração ou o segredo default

Authorizations:
bearerAuth (votante-temporario)
path Parameters
eventoId
required
integer
query Parameters
integracaoId
integer

Responses

Response samples

Content type
application/json
{}

Recebe o "authorization code" do zoom

query Parameters
code
string
Example: code=asdasdasfadfa
state
string
Example: state=addasdaadsd

Identificador da conta zoom na tabela zoom

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Erro"
}

Retorna dados do webinar

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "tipo": "zoom-integrado",
  • "dados": {
    }
}

Concordar com o termo

Concordar com o termo

Authorizations:
bearerAuth (votante-temporario)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "dataHoraConcordouTermo": "2017-07-21T17:32:28Z",
  • "ipConcordouTermo": "127.0.0.1",
  • "hashTermo": "adasfdfsdnfsdifmd"
}

Dados do Evento

Retorna os dados completos do evento

Authorizations:
bearerAuth (votanteintegracao)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Assembleia da Pandora",
  • "sindicatoId": 1,
  • "identificadorUrl": "assembleia-pandora",
  • "descricaoHtml": "<b>html</b>",
  • "videos": [],
  • "temWebinar": true,
  • "temVotacao": true,
  • "dataHoraEventoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraEventoFim": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroInicio": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroFim": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoFim": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarInicio": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarFim": "2017-07-21T17:32:28Z",
  • "podeCadastrarParticipante": false,
  • "podeVotarSeparado": false,
  • "tipoEventoId": 1,
  • "tipoAutenticacaoId": 2,
  • "tipoCadastroId": 3,
  • "tipoWebinarId": 4,
  • "tipoVotoSeparadoId": 5,
  • "ativo": true,
  • "tituloMatricula": "CRM",
  • "obrigatorioEmail": true,
  • "obrigatorioCelular": true,
  • "obrigatorioDataNascimento": true,
  • "obrigatorioCpf": true,
  • "obrigatorioMatricula": true,
  • "obrigaVisualizacaoVideos": false,
  • "incluiFotoVotante": false,
  • "possuiPublicKey": true,
  • "camposCustomizaveis": [
    ],
  • "minSancionamentos": 3,
  • "submissaoVotosSeparados": false
}

Upload da chave pública

Authorizations:
bearerAuth (token_administrativo)
path Parameters
eventoId
required
integer
Request Body schema: application/json

Conteúdo do arquivo com a chave pública

conteudo
required
string

Responses

Request samples

Content type
application/json
{
  • "conteudo": "string"
}

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}

Lista de tipos de evento

Authorizations:
bearerAuth (integracao)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de tipos de autenticação

Authorizations:
bearerAuth (integracao)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de tipos de voto em separado

Authorizations:
bearerAuth (integracao)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de tipos de cadastro

Authorizations:
bearerAuth (integracao)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de tipos de webinar

Authorizations:
bearerAuth (integracao)

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de Eventos

Authorizations:
bearerAuth (integracao)
query Parameters
filtro
string
Value: "ativo"
Example: filtro=ativo

Filtros especiais

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Lista de Urnas do evento

Authorizations:
bearerAuth (votante)
query Parameters
momento
string
Enum: "inclusao" "alteracao"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Pega os dados do usuário logado

Retorna dados do usuário logado olhando o token de autenticação

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "votou": true,
  • "dataHoraVotacao": "2016-08-29T01:00:00",
  • "ipVotacao": "200.1.32.4",
  • "concordouTermo": true,
  • "dataHoraConcordouTermo": "2017-07-21T17:32:28Z",
  • "ipConcordouTermo": "127.0.0.1",
  • "hashTermo": "adasfdfsdnfsdifmd",
  • "votoSeparado": true
}

Inclui urna para o usuário logado

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer
Request Body schema: application/json

Urna

urna
integer

Urna

Responses

Request samples

Content type
application/json
{
  • "urna": "Código da Urna"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "descricao": "Urna 1"
}

Inclui urna para o votante

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: application/json

Urna

urna
integer

Urna

Responses

Request samples

Content type
application/json
{
  • "urna": "Código da Urna"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "descricao": "Urna 1"
}

Inclusão de votante, lista normal e separado

Recebe os dados do votante, valida e incluí

path Parameters
eventoId
required
integer
Request Body schema:

Dados do votante

nome
required
string
email
required
string <email>
celular
required
string^\d{11}$
dataNascimento
required
string <date>
cpf
required
string^\d{11}$
matriculaFuncional
string^\d{1,30}$
integer or returnUrna (object)

Urna, para inclusão ou alteração pode ser apenas o Id

object

Responses

Request samples

Content type
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { }
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "id": 1,
  • "aprovado": true,
  • "motivo": "sms",
  • "comentarioContabiliza": "Lorem ipsum dolor sit amet",
  • "votoSeparado": true,
  • "listaInicial": false,
  • "fingerprint": "asdasdasdasdasdasdasdasdasdasdasda",
  • "tokenProvisorio": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Inclusão de foto de votante (não usado)

Authorizations:
bearerAuth (???)
path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: multipart/form-data

Dados do votante

fotoFile
string <binary>

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Não é possivel incluir foto para este evento"
}

Deletar o votante

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}

Envia Token para aprovação conforme o caso

Envia Token para aprovação conforme o caso

path Parameters
eventoId
required
integer
votanteId
required
integer

Responses

Response samples

Content type
application/json
{
  • "votanteId": 1,
  • "tipo": "sms",
  • "valor": "55..97.....75",
  • "descricao": "SMS"
}

Votante Solicitando Aprovação

Solicita Aprovação

path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: application/json

Token

token
string

Apenas se não for organizador

Responses

Request samples

Content type
application/json
{
  • "token": "ASDASD"
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "id": 1,
  • "aprovado": true,
  • "motivo": "sms",
  • "comentarioContabiliza": "Lorem ipsum dolor sit amet",
  • "votoSeparado": true,
  • "listaInicial": false,
  • "fingerprint": "asdasdasdasdasdasdasdasdasdasdasda",
  • "tokenTemporario": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Aprovar Votante

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: application/json

fingerprint no momento da aprovação

fingerprint
string

Fingerprint aprovado

Responses

Request samples

Content type
application/json
{
  • "fingerprint": "asdasdasdaasdasdasdaasdasdasdaaa"
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "id": 1,
  • "aprovado": true,
  • "motivo": "sms",
  • "comentarioContabiliza": "Lorem ipsum dolor sit amet",
  • "votoSeparado": true,
  • "listaInicial": false,
  • "fingerprint": "asdasdasdasdasdasdasdasdasdasdasda"
}

Deleta a aprovação

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}

Valida se os dados são validos e retorna o token

Recebe cpf,data de nascimento, matricula, senha ou token e retorna se é valido e o token

path Parameters
eventoId
required
integer
Request Body schema: application/json

Dados do votante a autenticar

One of
cpf
required
string^\d{11}$
dataNascimento
required
string <date>
votanteId
integer

Usado quando tem duplicidade de CPf e Data de Nascimento

Responses

Request samples

Content type
application/json
Example
{
  • "cpf": "32041149884",
  • "dataNascimento": "2016-08-29",
  • "votanteId": 1
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "tokenTemporario": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Recebe o CPF e retorna as perguntas

Recebe o CPF e retorna as perguntas

path Parameters
eventoId
required
integer
query Parameters
cpf
required
string^\d{11}$
Example: cpf=32041149884

Responses

Response samples

Content type
application/json
{
  • "questionarioId": "5b48f0c2293c470d445224e1",
  • "perguntas": [
    ]
}

Envia os dados de autenticacao e recebe as opções de 2fa

Recebe cpf e data de nascimento e retorna as opções de 2fa

path Parameters
eventoId
required
integer
query Parameters
cpf
required
string^\d{11}$
Example: cpf=32041149884
dataNascimento
required
string <date>
Example: dataNascimento=2016-08-29

Responses

Response samples

Content type
application/json
{
  • "opcoes": [
    ]
}

Manda Enviar token de 2fa

Recebe cpf e data de nascimento e opção de envio e manda enviar

path Parameters
eventoId
required
integer
Request Body schema: application/json

Dados do votante a enviar token

cpf
required
string^\d{11}$
dataNascimento
required
string <date>
votanteId
integer

Usado quando tem duplicidade de CPf e Data de Nascimento

opcao
required
string
Enum: "sms" "email" "whatsapp"

Responses

Request samples

Content type
application/json
{
  • "cpf": "32041149884",
  • "dataNascimento": "2016-08-29",
  • "votanteId": 1,
  • "opcao": "sms"
}

Response samples

Content type
application/json
{
  • "mensagem": "Token enviado para..."
}

Retorna Perguntas

Retorna Perguntas de um evento

Authorizations:
bearerAuth (votanteintegracao)
path Parameters
eventoId
required
integer
query Parameters
votanteId
integer
Example: votanteId=1

Retornar as perguntas de um votante especifico

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Retorna Itens de uma pergunta

Retorna Itens de uma pegunta

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer
perguntaId
required
integer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Vota em um evento

Registra todos os votos da pessoa em um evento

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer
Request Body schema: application/json

Array de votos

required
Array of objects (ArrayOfVotos)
foto
object

Responses

Request samples

Content type
application/json
{
  • "votos": [
    ],
  • "foto": { }
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "comprovante": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c",
  • "dataHoraVotacao": "2016-08-29T01:00:00",
  • "ipVotacao": "200.1.32.4",
  • "votoSeparado": false
}

Envia comprovante por e-mail

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer
Request Body schema: application/json

e-mail para enviar

comprovante
required
string
email
required
string

Responses

Request samples

Content type
application/json
{
  • "comprovante": "asdasfsdbfsdfjsdfd",
  • "email": "fabio.ginzel@pandora.com.br"
}

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}

Gera um token temporário para um usuário de uma integracao

query Parameters
papel
required
string
Example: papel=token_administrativo
eventoId
integer
Example: eventoId=23

Responses

Response samples

Content type
application/json
{
  • "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Retorna informações do voto com base em seu comprovante

path Parameters
eventoId
required
integer
comprovante
required
string

Responses

Response samples

Content type
application/json
{
  • "eventoNome": "Eleições 2023",
  • "comprovantes": [
    ]
}

Dashboard

Dados do Evento para o administrativo

Authorizations:
bearerAuth (token_administrativo)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Assembleia da Pandora",
  • "sindicatoId": 1,
  • "identificadorUrl": "assembleia-pandora",
  • "descricaoHtml": "<b>html</b>",
  • "videos": [],
  • "temWebinar": true,
  • "temVotacao": true,
  • "dataHoraEventoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraEventoFim": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroInicio": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroFim": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoFim": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarInicio": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarFim": "2017-07-21T17:32:28Z",
  • "podeCadastrarParticipante": false,
  • "podeVotarSeparado": false,
  • "tipoEventoId": 1,
  • "tipoAutenticacaoId": 2,
  • "tipoCadastroId": 3,
  • "tipoWebinarId": 4,
  • "tipoVotoSeparadoId": 5,
  • "ativo": true,
  • "tituloMatricula": "CRM",
  • "obrigatorioEmail": true,
  • "obrigatorioCelular": true,
  • "obrigatorioDataNascimento": true,
  • "obrigatorioCpf": true,
  • "obrigatorioMatricula": true,
  • "obrigaVisualizacaoVideos": false,
  • "incluiFotoVotante": false,
  • "possuiPublicKey": true,
  • "camposCustomizaveis": [
    ],
  • "minSancionamentos": 3,
  • "submissaoVotosSeparados": false
}

Lista os eventos aos quais o usuário possui acesso

Authorizations:
bearerAuth (token_administrativo)
query Parameters
limit
integer
page
integer
sindicato_id
integer
nome
string

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Acompanhamento das contabilizações

Authorizations:
bearerAuth (token_administrativotoken_fiscaltoken_cadastro)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "votantesLista": 0,
  • "votosLista": 0,
  • "votosSeparado": 0,
  • "votosValidos": 0
}

Métricas numéricas

Authorizations:
bearerAuth (token_administrativo)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "votantesLista": 0,
  • "votosLista": 0,
  • "votosSeparado": 0,
  • "votosValidos": 0
}

Votos por tempo

Authorizations:
bearerAuth (token_administrativo)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "registrado": 0,
  • "contabilizando": 0,
  • "contabilizado": 0
}

Retorna Lista de Votantes

Votantes limit 100

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
query Parameters
limit
integer
page
integer
tipo_voto
string
Example: tipo_voto=Um dos valores: 'todos', 'apenas_separados', 'apenas_lista'
votante_votou
boolean
nome
string
header Parameters
accepted
string
Enum: "application/json" "application/pdf" "application/csv"

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Gera relatório de zeresima

O relatório é enviado via email ao usuário logado e também retornado em json

Authorizations:
bearerAuth (token_administrativotoken_fiscaltoken_cadastro)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Registra sancionamento dos votos em separado

Authorizations:
bearerAuth (token_sancionador)

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Token não encontrado"
}

Habilita contabilização dos votos separados

Authorizations:
bearerAuth (token_administrativo)

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Token não encontrado"
}

Retorna informações sobre os sancionamentos registrados

Authorizations:
bearerAuth (token_fiscaltoken_cadastrotoken_administrativo)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "minSancionamentos": 3,
  • "sancionamentosRegistrados": [
    ]
}

Admitir legitimidade dos votos

Authorizations:
bearerAuth (token_cadastrotoken_administrativo)
path Parameters
eventoId
required
integer
Request Body schema: application/json
required
Array of objects

Admissões e inadmissões

Responses

Request samples

Content type
application/json
{
  • "votantes": [
    ]
}

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}

Organizador

(WIP) Altera o evento

Authorizations:
bearerAuth (organizador)
path Parameters
eventoId
required
integer
Request Body schema: application/json

Dados do evento

descricaoHtml
string
videos
Array of strings
temWebinar
boolean
temVotacao
boolean
dataHoraEventoInicio
string <date-time>
dataHoraEventoFim
string <date-time>
dataHoraCadastroInicio
string <date-time>
dataHoraCadastroFim
string <date-time>
dataHoraVotacaoInicio
string <date-time>
dataHoraVotacaoFim
string <date-time>
dataHoraWebinarInicio
string <date-time>
dataHoraWebinarFim
string <date-time>
tipoEventoId
integer
tipoAutenticacaoId
integer
tipoCadastroId
integer
tipoWebinarId
integer
tipoVotoSeparadoId
integer
tituloMatricula
string
obrigatorioEmail
boolean
obrigatorioCelular
boolean
obrigatorioDataNascimento
boolean
obrigatorioCpf
boolean
obrigatorioMatricula
boolean
obrigaVisualizacaoVideos
boolean
incluiFotoVotante
boolean
possuiPublicKey
boolean
Array of objects (camposCustomizaveis)
minSancionamentos
integer
submissaoVotosSeparados
boolean

True se a lista de votos separados já foi submetida

Responses

Request samples

Content type
application/json
{
  • "descricaoHtml": "<b>html</b>",
  • "videos": [],
  • "temWebinar": true,
  • "temVotacao": true,
  • "dataHoraEventoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraEventoFim": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroInicio": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroFim": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoFim": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarInicio": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarFim": "2017-07-21T17:32:28Z",
  • "tipoEventoId": 1,
  • "tipoAutenticacaoId": 2,
  • "tipoCadastroId": 3,
  • "tipoWebinarId": 4,
  • "tipoVotoSeparadoId": 5,
  • "tituloMatricula": "CRM",
  • "obrigatorioEmail": true,
  • "obrigatorioCelular": true,
  • "obrigatorioDataNascimento": true,
  • "obrigatorioCpf": true,
  • "obrigatorioMatricula": true,
  • "obrigaVisualizacaoVideos": false,
  • "incluiFotoVotante": false,
  • "possuiPublicKey": true,
  • "camposCustomizaveis": [
    ],
  • "minSancionamentos": 3,
  • "submissaoVotosSeparados": false
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Assembleia da Pandora",
  • "sindicatoId": 1,
  • "identificadorUrl": "assembleia-pandora",
  • "descricaoHtml": "<b>html</b>",
  • "videos": [],
  • "temWebinar": true,
  • "temVotacao": true,
  • "dataHoraEventoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraEventoFim": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroInicio": "2017-07-21T17:32:28Z",
  • "dataHoraCadastroFim": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoInicio": "2017-07-21T17:32:28Z",
  • "dataHoraVotacaoFim": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarInicio": "2017-07-21T17:32:28Z",
  • "dataHoraWebinarFim": "2017-07-21T17:32:28Z",
  • "podeCadastrarParticipante": false,
  • "podeVotarSeparado": false,
  • "tipoEventoId": 1,
  • "tipoAutenticacaoId": 2,
  • "tipoCadastroId": 3,
  • "tipoWebinarId": 4,
  • "tipoVotoSeparadoId": 5,
  • "ativo": true,
  • "tituloMatricula": "CRM",
  • "obrigatorioEmail": true,
  • "obrigatorioCelular": true,
  • "obrigatorioDataNascimento": true,
  • "obrigatorioCpf": true,
  • "obrigatorioMatricula": true,
  • "obrigaVisualizacaoVideos": false,
  • "incluiFotoVotante": false,
  • "possuiPublicKey": true,
  • "camposCustomizaveis": [
    ],
  • "minSancionamentos": 3,
  • "submissaoVotosSeparados": false
}

Retorna Lista de Votantes

Votantes limit 100

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
query Parameters
cpf
string^\d{11}$
Example: cpf=32041149884
dataNascimento
string <date>
Example: dataNascimento=2016-08-29
nome
string
Example: nome=Fabio Ginzel
matriculaFuncional
string^\d{1,30}$
Example: matriculaFuncional=123123

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Retorna o votante

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer

Responses

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "id": 1,
  • "aprovado": true,
  • "motivo": "sms",
  • "comentarioContabiliza": "Lorem ipsum dolor sit amet",
  • "votoSeparado": true,
  • "listaInicial": false,
  • "fingerprint": "asdasdasdasdasdasdasdasdasdasdasda",
  • "votou": true,
  • "dataHoraVotacao": "2016-08-29T01:00:00",
  • "ipVotacao": "200.1.32.4",
  • "concordouTermo": true,
  • "dataHoraConcordouTermo": "2017-07-21T17:32:28Z",
  • "ipConcordouTermo": "127.0.0.1",
  • "hashTermo": "adasfdfsdnfsdifmd",
  • "comentario": "Comentário sobre o votante",
  • "verificadoPor": "shpfashdfasdfasdf",
  • "verificadoEm": "2017-07-21T17:32:28Z",
  • "verificadoPeloIp": "127.0.0.1",
  • "votoValido": true
}

Altera o votante

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: application/json

Dados do votante

email
string <email>
celular
string^\d{11}$
dataNascimento
string <date>
matriculaFuncional
string^\d{1,30}$
object

Responses

Request samples

Content type
application/json
{
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "matriculaFuncional": "3204114934234234",
  • "demaisDados": { }
}

Response samples

Content type
application/json
{
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "celular": "11972285675",
  • "dataNascimento": "2016-08-29",
  • "cpf": "32041149884",
  • "matriculaFuncional": "3204114934234234",
  • "urna": 1,
  • "demaisDados": { },
  • "id": 1,
  • "aprovado": true,
  • "motivo": "sms",
  • "comentarioContabiliza": "Lorem ipsum dolor sit amet",
  • "votoSeparado": true,
  • "listaInicial": false,
  • "fingerprint": "asdasdasdasdasdasdasdasdasdasdasda",
  • "votou": true,
  • "dataHoraVotacao": "2016-08-29T01:00:00",
  • "ipVotacao": "200.1.32.4",
  • "concordouTermo": true,
  • "dataHoraConcordouTermo": "2017-07-21T17:32:28Z",
  • "ipConcordouTermo": "127.0.0.1",
  • "hashTermo": "adasfdfsdnfsdifmd"
}

Vota fisicamente em uma ou mais perguntas

Authorizations:
bearerAuth (integracao)
path Parameters
eventoId
required
integer
votanteId
required
integer
Request Body schema: application/json

Array de id de perguntas Votadas

perguntaId
required
Array of integers

Responses

Request samples

Content type
application/json
{
  • "perguntaId": [
    ]
}

Response samples

Content type
application/json
{
  • "mensagem": "Voto já computado anteriormente"
}

Autenticar Organizador

Recebe e-mail e senha e retorna token para acesso

path Parameters
eventoId
required
integer
Request Body schema: application/json
email
required
string <email>
senha
required
string

Senha em MD5

Responses

Request samples

Content type
application/json
{
  • "email": "fabio.ginzel@pandora.com.br",
  • "senha": "asdasdasdasdasdasdasdasdasdasdas"
}

Response samples

Content type
application/json
{
  • "token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
}

Pega os dados do usuário logado (organizador)

Authorizations:
bearerAuth (votante)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "organizadorNivel": "moderador",
  • "portadorChavePrivada": false,
  • "hashChavePrivada": "asdasdasfdoifdspofdsda",
  • "dataHoraUltimoLogin": "2017-07-21T17:32:28Z"
}

Alterar Minha senha - Organizador

Authorizations:
bearerAuth (???)
path Parameters
eventoId
required
integer
Request Body schema: application/json
senhaAtual
string

Senha atual em md5

senhaNova
string

Nova senha em MD5

Responses

Request samples

Content type
application/json
{
  • "senhaAtual": "asdasfdfdsfaa",
  • "senhaNova": "asdasfdfdsfaa"
}

Response samples

Content type
application/json
{
  • "id": 1,
  • "nome": "Fabio Ginzel",
  • "email": "fabio.ginzel@pandora.com.br",
  • "organizadorNivel": "moderador"
}

Lista as solicitações de importação de votantes de um evento específico

Authorizations:
bearerAuth (organizador)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Cria uma solicitação de importação dos votantes de um arquivo CSV

Authorizations:
bearerAuth (organizador)
path Parameters
eventoId
required
integer
Request Body schema: multipart/form-data

CSV teste

cabecalho
boolean

'false' caso a primeira linha deva ser ignorada, 'true' caso contrário.

colunas
array

Uma lista ordenada contendo o nome de cada atributo de votante que o csv possui. Os atributos esperados são: 'nome', 'email', 'celular', 'dataNascimento', 'cpf', 'matriculaFuncional', 'identificadorUrna', 'descricaoUrna'. Caso um atributo adicionado não esteja nesta lista, o valor entrará como parte do atributo 'demaisDados'.

unico
array

Uma lista contendo o nome dos atributos que devem ser únicos na importação. Os campos possíveis são: 'nome', 'email', 'celular', 'dataNascimento', 'matriculaFuncional'. Lembrando que o campo cpf sempre deve ser único

file
string <csv>

Um arquivo csv com os valores na ordem informada no campo 'colunas'. O separador do CSV deve ser o caractere ';'

Responses

Response samples

Content type
application/json
{
  • "id": 321,
  • "colunas": [
    ],
  • "cabecalho": true,
  • "unico": [
    ],
  • "status": "pendente",
  • "votantesImportados": 4321,
  • "votantesComErro": 1234,
  • "momentoAlteracao": "2020-12-31 23:59:59"
}

Retorna o resultado criptografado

Authorizations:
bearerAuth (token_administrativo)
path Parameters
eventoId
required
integer

Responses

Response samples

Content type
application/json
{
  • "mensagem": "Não foi possível fazer isso"
}