Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

REST registrar positivado #18

Open
Abreums opened this issue Aug 24, 2020 · 5 comments
Open

REST registrar positivado #18

Abreums opened this issue Aug 24, 2020 · 5 comments
Assignees
Milestone

Comments

@Abreums
Copy link
Contributor

Abreums commented Aug 24, 2020

REST para registrar positivado

@Abreums Abreums self-assigned this Aug 26, 2020
@Abreums Abreums added this to the API REST milestone Aug 31, 2020
@Abreums
Copy link
Contributor Author

Abreums commented Sep 2, 2020

POST (Envia histórico para registro)

coronga.com.br/checkpoint/{id}

@Abreums
Copy link
Contributor Author

Abreums commented Sep 2, 2020

O POST envia o id do usuário que deverá ser um hash gerado a partir do CPF e data de nascimento do usuário.

Os dados que devem ser enviados são os dados do checkpoint:
{
latitude: string
longitude: string
timestamp: string
}

@Abreums
Copy link
Contributor Author

Abreums commented Sep 9, 2020

Para salver um Checkpoint consumir o serviço:

POST https://hxf2nx257b.execute-api.sa-east-1.amazonaws.com/prod/checkpoint
com header:
"Content-Type":"application/json""
e body em JSON:
{
"id":"12345",
"latitude":"-33.1234",
"longitude":"-32.1234",
"timestamp":"1234567890"
}

@adaolima
Copy link
Contributor

adaolima commented Sep 9, 2020

Massa @Abreums.
Estou enviando os arquivos que estou trabalhando na branch frontend.
Estou usando o GatsbyJS para desenvolver e gerar o webapp.

@Abreums
Copy link
Contributor Author

Abreums commented Sep 9, 2020

Arruma uns 30min... pra eu te mostrar como funciona na AWS. Apanhei para aprender.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants