Skip to content

lucasevo246/basic-clientes-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API - CRUD de clientes em Java


Desenvolvido em Spring Boot , Jpa, banco H2(memória)

Inicialização Rápida pelo CMD


Baixar código fonte, rodar os seguintes comandos no cmd :
-cd target
-java -jar algacrm-api-0.0.1-SNAPSHOT.jar

Chamadas Api



URL - http://localhost:8080/clientes
Request Method - GET

Resposta : Listagem de clientes


URL - http://localhost:8080/clientes
Request Method - POST
Body:
{
"nome" : "Lucas",
"cel" : "(11) 2222-2222"
}
Resposta :
{
"id": 1,
"nome": "Lucas",
"cel": "(11) 2222-2222",
"data_cadastro": "2021-01-29T21:41:51.445+00:00"
}



URL - http://localhost:8080/clientes/update/1
Request Method - PUT
Body:
{
"nome" : "Lucas",
"cel" : "(11) 5555-5555"
}

Resposta : 200 OK


URL - http://localhost:8080/delete/1
Request Method - PUT
Resposta : 200 OK

About

API Rest - CRUD de clientes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages