Skip to content

Este teste é apresentado aos candidatos as vagas de desenvolvimento Back-end para avaliar os quesitos técnicos.

Notifications You must be signed in to change notification settings

marianapiccolo/teste-dev-backend

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

Oli Saúde|100x397,20%

The Challenge

Create a simple API to manage Clients. This API should allow:

  • Create a customer
  • Edit a customer
  • Get a specific customer
  • List customers

A Client must have the following fields:

  • Name
  • birth date
  • gender
  • [ health problems ]
  • creation date
  • update date

Health problems

  • Name

  • degree of problem (1 to 2)

    ex: diabetes, degree 2 Create an endpoint to bring the 10 clients with the highest health risk, in which the calculation is:

        sd = soma do grau dos problemas
        score = (1 / (1 + eˆ-(-2.8 + sd ))) * 100
    

Technologies used

  • Java
  • SpringBoot
  • Postman
  • MySQL

Spring Boot Flow Architecture

  • Layers: Model, Repository and Controller.
  • Methods: Get, Put, Post.
  • Get: Get the API data.
  • Post: Create a new data.
  • Put: Update the data.

Endpoint

  • Score: Calculates the sum of the degrees of each client's health problem and then calculates the client's score.
  • showTenClients: Show the 10 clients with the highest health risk.

About

Este teste é apresentado aos candidatos as vagas de desenvolvimento Back-end para avaliar os quesitos técnicos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%