Sign inSign up

fabioalvaro/springboot-employee

By fabioalvaro

Updated about 3 years ago

Api de Employee feita em springboot com acesso ao banco mysql.

Image
0

1.4K

fabioalvaro/springboot-employee repository overview

Projeto Base no Github

https://github.com/slackwarecps/springboot-employee

Como rodar a api localmente

$ docker rm minha-api-exemplo
$ docker run --name minha-api-exemplo  -p 8080:8080 \
-e DB_USERNAME=sa -e DB_PASSWORD=1234 -e DB_HOST=192.168.0.68 -e DB_NAME=employeedb \
fabioalvaro/springboot-employee:latest

Como testar o projeto

Inserindo registros
curl --location 'http://localhost:8080/api/employees/addEmployee' \
--header 'Content-Type: application/json' \
--data-raw '{
    "firstName": "Fabio",
    "lastName": "Pereira",
    "email": "[email protected]"
}'
Buscando os registros
curl --location 'http://localhost:8080/api/employees'

Tag summary

Content type

Image

Digest

sha256:abadea4f7

Size

259 MB

Last updated

about 3 years ago

docker pull fabioalvaro/springboot-employee