GET http://localhost:8080/api/funcionario content-type: application/json Accept: application/json Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
###
POST http://localhost:8080/api/funcionario content-type: application/json Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
- {
- "name": "Eder Nilson", "salary": 1000.00, "balance": 1000.00, "companyId": 1
}
###
POST http://localhost:8080/api/funcionario content-type: application/json Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
- {
- "name": "William", "salary": 4000.00, "balance": 1000.00, "companyId": 1
}
###
GET http://localhost:8080/api/funcionario/1 Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
###
DELETE http://localhost:8080/api/funcionario/2 Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
###
PUT http://localhost:8080/api/funcionario/2 content-type: application/json Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw
- {
- "name": "Eder Nilson", "salary": 8000.00, "balance": 1000.00, "companyId": 1
}
###
GET http://localhost:8080/api/funcionario/2/obterSaldo Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiJ1c2VyIiwiZXhwIjoxNjIzMTg3NDYyfQ.F6oshBrbKLZ9dApztEQlXCd5EbEAKIRpDwVYFtJYBy1DzkmJ1h1UdfOsTjI6p_uMr66dOm-oRlNU-S2SrB6VWw