| Home | Sprints | Requisitos | Arquitetura | Configuração | Endpoints | Mockups | Problemas |
|---|
Abaixo os comandos o cadastro e funções dentro do aplicativo:
1. Usuário:
{
"id": "",
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true
}
{
"id": 1,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true
}
{
"id": 1,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true,
"valid": true
}
{
"Usuarios": [
{
"id": 1,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true,
"valid": true
},
{
"id": 2,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true,
"valid": true
}
]
}
Sem retorno de json
2. Ingredientes e seus Atributos:
{
"id": "",
"nome": "Arroz",
"origem": "Taco",
"status": true,
"criador": { "id": 1 },
"ingredienteAtributo": [
{
"atributo": { "id": 1, "tipo" : "NULL" },
"valor": "45"
}
],
"tipo": "PRIVADO", *** ou "COMUM"
}
{
"id": "1",
"nome": "Arroz",
"origem": "Taco",
"status": true,
"criador": { "id": 1, "tipo" : "NULL" },
"ingredienteAtributo": [
{
"atributo": { "id": 1 },
"valor": "45"
},
{
"atributo": { "id": 2 },
"valor": null
}
],
"tipo": "PRIVADO", *** ou "COMUM"
}
{
"id": 1,
"nome": "testeMock6734",
"origem": "tacoMock",
"status": true,
"tipo": "PRIVADO", *** ou "COMUM"
"criador": {
"id": 1,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true,
"valid": true
},
"ingredienteAtributo": [
{
"atributo": {
"id": 3,
"nome": "falasio",
"unidade": "o",
"multiplicador": 9,
"obrigatorio": true,
"status": true,
"active": true
},
"valor": null
},
{
"atributo": {
"id": 1,
"nome": "calcioEdited",
"unidade": "ga",
"multiplicador": 41,
"obrigatorio": false,
"status": true,
"active": true
},
"valor": "46"
}
]
}
{
"Ingredientes": [
{
"id": 1,
"nome": "Arroz",
"origem": "Taco",
"tipo": "COMUM", ** ou "PRIVADO"
"criador": {
"id": 1,
"cpf": "1111111112",
"email": "[email protected]",
"matricula": "101011",
"nome": "Admin1",
"senha": "e10adc3949ba59abbe56e057f20f883e",
"tipo": "ADMIN", *** ou "USER"
"status": true,
"valid": true
},
"ingredienteAtributo": [
{
"atributo": {
"id": 1,
"nome": "potasio",
"unidade": "g",
"multiplicador": 5,
"obrigatorio": true,
"status": true,
"active": true
},
"valor": "45"
},
{
"atributo": {
"id": 2,
"nome": "calcio",
"unidade": "g",
"multiplicador": 9,
"obrigatorio": true,
"status": true,
"active": true
},
"valor": null
},
......
],
"status": true
},
outros ingrediente......
]
}
3. Atributos:
{
"id": "",
"nome": "calcio",
"unidade": "g",
"multiplicador": 41,
"ordem": 1,
"obrigatorio": false,
"status": true,
"active": true
}
{
"id": "1",
"nome": "calcio",
"unidade": "g",
"multiplicador": 41,
"ordem": 1,
"obrigatorio": false,
"status": true
}
{
"id": "1",
"nome": "calcio",
"unidade": "g",
"multiplicador": 41,
"ordem": 1,
"obrigatorio": false,
"status": true
}
{
"Atributos": [
{
"id": 1,
"nome": "calcioEdited",
"unidade": "ga",
"multiplicador": 41,
"obrigatorio": false,
"ordem": 1,
"status": true,
"active": true
},
.......
]
}
4. Grupos de Receitas:
{
"id": "",
"nome": "Sobremesa",
"custo": 32,
"status": true
}
{
"id": 12,
"nome": "Sobremesa",
"custo": 32,
"status": true
}
{
"id": 12,
"nome": "Sobremesa",
"custo": 32,
"status": true,
"active": true
}
{
"Grupos": [
{
"id": 1,
"nome": "Sobremesa",
"custo": 32,
"status": true,
"active": true
},
......
]
}
5. Login:
{
"email" : "[email protected]",
"senha" : "123456"
}
6. Receitas:
{
"id": "",
"nome": "Trufas de Chocolate",
"status": "true",
"passos": [
"limpar",
"fever",
"reserve"
],
"rendimento": 20,
"tempo": "2 horas",
"imagem": "Imagem",
"tipo": "PUBLICO",
"criadores":[{"id": "1", "tipo":"NULL"}],
"receitaIngrediente": [
{
"ingrediente": {"id": 1, "tipo":"NULL"},
"custoKg": "5",
"pesoG": "5"
}
],
"professor": {"id": "1", "tipo":"NULL"},
"grupoReceita": {"id": "1"}
}
{
"id": "2",
"nome": "Trufas de Chocolate",
"status": "true",
"passos": [
"limpar",
"fever",
"reserve"
],
"rendimento": 20,
"tempo": "2 horas",
"imagem": "Imagem",
"tipo": "PUBLICO",
"criadores":[{"id": "1", "tipo":"NULL"}],
"receitaIngrediente": [
{
"ingrediente": {"id": 1, "tipo":"NULL"},
"custoKg": "5",
"pesoG": "5"
}
],
"professor": {"id": "1", "tipo":"NULL"},
"grupoReceita": {"id": "1"}
}
{
"id": 2,
"nome": "Trufas de Chocolate2",
"status": false,
"passos": [
"limpar",
"fever",
"reserve"
],
"rendimento": 24,
"criadores": [
{
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
}
],
"receitaIngrediente": [
{
"ingrediente": {
"id": 1,
"nome": "Feijao7",
"criador": {
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
},
"origem": "Taco1",
"status": true,
"ingredienteAtributo": [
{
"atributo": {
"id": 1,
"nome": "calcio",
"unidade": "g",
"multiplicador": 41,
"obrigatorio": false,
"status": true,
"active": true
},
"valor": "23"
}
],
"tipo": "PRIVADO"
},
"custoKg": 5,
"pesoG": 5
}
],
"professor": {
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
},
"grupoReceita": {
"id": 1,
"nome": "Sobremesa",
"custo": 32,
"status": true,
"active": true
}
}
{
"Receitas": [
{
"id": 2,
"nome": "Trufas de Chocolate2",
"status": false,
"passos": [
"limpar",
"fever",
"reserve"
],
"rendimento": 24,
"criadores": [
{
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
}
],
"receitaIngrediente": [
{
"ingrediente": {
"id": 1,
"nome": "Feijao7",
"criador": {
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
},
"origem": "Taco1",
"status": true,
"ingredienteAtributo": [
{
"atributo": {
"id": 1,
"nome": "calcio",
"unidade": "g",
"multiplicador": 41,
"obrigatorio": false,
"status": true,
"active": true
},
"valor": "23"
}
],
"tipo": "PRIVADO"
},
"custoKg": 5,
"pesoG": 5
}
],
"professor": {
"id": 1,
"cpf": "1111111111",
"email": "[email protected]",
"matricula": "101010",
"nome": "Admin",
"senha": "c56d0e9a7ccec67b4ea131655038d604",
"tipo": "ADMIN",
"status": true,
"valid": true
},
"grupoReceita": {
"id": 1,
"nome": "Sobremesa",
"custo": 32,
"status": true,
"active": true
}
},
......
]
}
7. Pacientes:
{
"nome": "João da Silva",
"sexo": "M",
"dataNascimento": "1990-03-15",
"restricaoAlimentar": "eutrofico"
}
{
"id": 1,
"nome": "João da Silva",
"sexo": "M",
"dataNascimento": "1990-03-15",
"restricaoAlimentar": "eutrofico"
}
{
"id": 1,
"nome": "João da Silva",
"sexo": "M",
"dataNascimento": "1990-03-15",
"restricaoAlimentar": "eutrofico"
}
{
"Pacientes": [
{
"id": 1,
"nome": "João da Silva",
"sexo": "M",
"dataNascimento": "1990-03-15",
"restricaoAlimentar": "eutrofico"
},
{
"id": 2,
"nome": "Maria de Souza",
"sexo": "F",
"dataNascimento": "1980-07-28",
"restricaoAlimentar": "vegetariano"
}
]
}
Sem retorno de JSON