Skip to content
This repository has been archived by the owner on Aug 14, 2020. It is now read-only.

Ajustar Endpoint /datasus/regions #138

Open
2 tasks
jeduardo824 opened this issue Jun 2, 2020 · 1 comment
Open
2 tasks

Ajustar Endpoint /datasus/regions #138

jeduardo824 opened this issue Jun 2, 2020 · 1 comment

Comments

@jeduardo824
Copy link
Collaborator

O model atual não corresponde ainda ao que estamos precisando. Precisamos criar um novo model que leia da table vwDataSusRegion e que terá os seguintes campos:

date,
region,
state,
city,
coduf,
codmun,
population,
newcases,
newdeaths,
totalcases,
totaldeaths,
avgcases,
avgnewdeaths,
percentcases,
percentdeaths

Depois precisamos atualizar o service que alimenta o endpoint para retornar os dados da query: SELECT * FROM vwDataSusRegion

  1. - Criar model vwDataSusRegion que consulta os dados da tabela vwDataSusRegion com os respectivos campos citados acima.
  2. - Atualizar o service que alimenta o endpoint /datasus/regions para retornar a query: SELECT * FROM vwDataSusRegion.
@mocotinha
Copy link

Field_Name Field_Format:

date Date,
region String,
state String,
city String,
coduf Int,
codmun Int ,
population Int,
newcases Int,
newdeaths Int,
totalcases Int,
totaldeaths Int,
avgcases Int,
avgnewdeaths Int,
percentcases Double,
percentdeaths Double

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

No branches or pull requests

2 participants