diff --git a/API Teste/bancopessoas.sql b/API Teste/bancopessoas.sql
index 4201a41..da6172b 100644
--- a/API Teste/bancopessoas.sql
+++ b/API Teste/bancopessoas.sql
@@ -1,14 +1,14 @@
create database pessoas;
use pessoas;
-create table pessoas(
+create table pessoa(
id integer auto_increment primary key,
nome_completo varchar(200) not null,
cpf varchar(11) not null,
-data_nascimento varchar(8) not null,
-email varchar(50) not null,
+data_nascimento date not null,
+email varchar(50) not null
);
-insert into pessoas values (null, 'Elizangela', '999999999', '04/07/1990', 'elizangela@gmail.com');
+insert into pessoa values (null, 'Elizangela', '999999999', '1990-07-04', 'elizangela@gmail.com');
select * from pessoas;
diff --git a/API Teste/projeto/pom.xml b/API Teste/projeto/pom.xml
index 2287401..87800bc 100644
--- a/API Teste/projeto/pom.xml
+++ b/API Teste/projeto/pom.xml
@@ -39,8 +39,7 @@
org.springframework.boot
- spring-boot-starter-test
- test
+ spring-boot-starter-security
diff --git a/API Teste/projeto/src/main/java/DAO/IPessoas.java b/API Teste/projeto/src/main/java/DAO/IPessoas.java
deleted file mode 100644
index 0ea56a9..0000000
--- a/API Teste/projeto/src/main/java/DAO/IPessoas.java
+++ /dev/null
@@ -1,10 +0,0 @@
-package DAO;
-
-import model.Pessoas;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.data.repository.CrudRepository;
-
-public interface IPessoas extends JpaRepository {
-
-
-}
diff --git a/API Teste/projeto/src/main/java/Service/Pessoa.java b/API Teste/projeto/src/main/java/Service/Pessoa.java
deleted file mode 100644
index 4b22683..0000000
--- a/API Teste/projeto/src/main/java/Service/Pessoa.java
+++ /dev/null
@@ -1,6 +0,0 @@
-package Service;
-
-public class Pessoa {
- public Object getIcpf() {
- }
-}
diff --git a/API Teste/projeto/src/main/java/Service/PessoaService.java b/API Teste/projeto/src/main/java/Service/PessoaService.java
deleted file mode 100644
index 59a194c..0000000
--- a/API Teste/projeto/src/main/java/Service/PessoaService.java
+++ /dev/null
@@ -1,48 +0,0 @@
-package Service;
-
-import DAO.IPessoas;
-import com.sun.xml.bind.v2.model.core.ID;
-import org.springframework.data.jpa.repository.JpaRepository;
-
-@Service
-public final class PessoaService {
- private IPessoas;
- private PasswordEncoder passwordEncoder;
-
- public PessoaService(IPessoas){
- this.dao = dao;
- this.passwordEncoder = new BCryptPasswordEncorder();
- }
-
- public static List listarPessoa(){
- List lista = dao.findAll();
- return lista;
- }
-
- public Pessoa criarPessoa( Pessoa pessoa){
- String encorder = this.passwordEncoder.encode(pessoa.getIcpf());
- pessoa.setIcpf(encoder);
- Pessoa pessoaNovo = dao.save(pessoa);
- return pessoaNovo;
- }
-
- public Pessoa editarPessoa( Pessoa pessoa){
- Pessoa pessoaNovo = dao.save(pessoa);
- return pessoaNovo;
- }
-
- public Boolean excluirPessoa(ID id, JpaRepository dao){
- dao.deleteById(id);
- return true;
- }
-
- public Boolean validarCPF(Pessoa pessoa, JpaRepository dao){
- String cpf = dao.getById(pessoa.getIid()).getIcpf();
- boolean valid = false; passwordEncoder.matches(pessoa.getIcpf(), cpf);
- return valid;
- }
-
-
-}
-
-
diff --git a/API Teste/projeto/src/main/java/br/com/criandoapi/projeto/PessoasController.java b/API Teste/projeto/src/main/java/br/com/criandoapi/projeto/PessoasController.java
deleted file mode 100644
index 1db77e4..0000000
--- a/API Teste/projeto/src/main/java/br/com/criandoapi/projeto/PessoasController.java
+++ /dev/null
@@ -1,61 +0,0 @@
-package br.com.criandoapi.projeto;
-
-import Service.Pessoa;
-import Service.PessoaService;
-import com.sun.xml.bind.v2.model.core.ID;
-import model.Pessoas;
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.data.jpa.repository.JpaRepository;
-import org.springframework.http.HttpStatus;
-import org.springframework.http.ResponseEntity;
-import org.springframework.web.bind.annotation.*;
-
-import java.util.List;
-
-
-
-@RestController
-@CrossOrigin("*")
-@RequestMapping("/pessoas")
-public class PessoasController {
-
- @Autowired
-
- private JpaRepository dao;
- private PessoaService pessoaService;
-
- public PessoasController(){
- this.pessoaService = null;
-
-
- }
-
- @GetMapping
- public ResponseEntity> listaPessoas() {
- return ResponseEntity.status(200).body(PessoaService.listarPessoa(Pessoa));
-
- }
-
- @PostMapping
- public ResponseEntity criarPessoa(@RequestBody Pessoa pessoa, Pessoa Pessoa) {
- return ResponseEntity.status(201).body(pessoaService.criarPessoa(Pessoa));
-
- }
-
- @PutMapping
- public ResponseEntity editarPessoa(@RequestBody Pessoa pessoa, Pessoa Pessoa) {
- return ResponseEntity.status(200).body(pessoaService.editarPessoa(Pessoa);
- }
-
- @PostMapping ("/cpf")
- public ResponseEntity